1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Update to 0.94

Changes:	https://github.com/traviscross/mtr/blob/master/NEWS
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-09-29 18:15:38 +00:00
parent 649426ff63
commit 3bc4cab4a8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550550
4 changed files with 4 additions and 50 deletions

View File

@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= mtr
PORTVERSION= 0.93
PORTVERSION= 0.94
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= net
MAINTAINER= sunpoet@FreeBSD.org

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1578125689
SHA256 (traviscross-mtr-v0.93_GH0.tar.gz) = 3a1ab330104ddee3135af3cfa567b9608001c5deecbf200c08b545ed6d7a4c8f
SIZE (traviscross-mtr-v0.93_GH0.tar.gz) = 142148
TIMESTAMP = 1601319670
SHA256 (traviscross-mtr-v0.94_GH0.tar.gz) = ea036fdd45da488c241603f6ea59a06bbcfe6c26177ebd34fff54336a44494b8
SIZE (traviscross-mtr-v0.94_GH0.tar.gz) = 143616

View File

@ -1,20 +0,0 @@
--- packet/probe.c.orig 2019-08-03 08:31:26 UTC
+++ packet/probe.c
@@ -323,7 +323,7 @@ int find_source_addr(
anything to the port.
*/
*sockaddr_port_offset(&dest_with_port) = htons(1);
- len = sockaddr_addr_size(&dest_with_port);
+ len = sockaddr_size(&dest_with_port);
sock = socket(destaddr->ss_family, SOCK_DGRAM, IPPROTO_UDP);
if (sock == -1) {
@@ -364,7 +364,7 @@ int find_source_addr(
Zero the port, as we may later use this address to finding, and
we don't want to use the port from the socket we just created.
*/
- *sockaddr_port_offset(&srcaddr) = 0;
+ *sockaddr_port_offset(srcaddr) = 0;
return 0;
}

View File

@ -1,25 +0,0 @@
--- packet/probe_unix.c.orig 2019-08-03 08:31:26 UTC
+++ packet/probe_unix.c
@@ -795,7 +795,6 @@ void receive_replies_from_recv_socket(
memcpy(&remote_addr, SO_EE_OFFENDER(ee), sizeof(remote_addr));
}
}
-#endif
#ifdef SO_PROTOCOL
if (icmp_connrefused_received) {
@@ -815,11 +814,14 @@ void receive_replies_from_recv_socket(
packet, packet_length, &timestamp);
} else {
#endif
+#endif
/* ICMP packets received from raw socket */
handle_received_packet(net_state, &remote_addr, packet,
packet_length, &timestamp);
#ifdef SO_PROTOCOL
+#ifdef HAVE_LINUX_ERRQUEUE_H
}
+#endif
#endif
}
}