aboutsummaryrefslogtreecommitdiff
path: root/net/tcptraceroute
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-07 23:08:41 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-07 23:08:41 +0000
commitaa4ee346f3924061d86f9a4809d2e4897ead9e05 (patch)
tree26e632f633e1638434a275f3b4d359b7d737458f /net/tcptraceroute
parent66cb442d9afac56985eaae5746207b9bfde60380 (diff)
downloadports-aa4ee346f3924061d86f9a4809d2e4897ead9e05.tar.gz
ports-aa4ee346f3924061d86f9a4809d2e4897ead9e05.zip
Notes
Diffstat (limited to 'net/tcptraceroute')
-rw-r--r--net/tcptraceroute/files/patch-Makefile4
-rw-r--r--net/tcptraceroute/files/patch-tcptraceroute.c26
2 files changed, 28 insertions, 2 deletions
diff --git a/net/tcptraceroute/files/patch-Makefile b/net/tcptraceroute/files/patch-Makefile
index 7abce3a75413..6564b05352a2 100644
--- a/net/tcptraceroute/files/patch-Makefile
+++ b/net/tcptraceroute/files/patch-Makefile
@@ -9,8 +9,8 @@
-DESTDIR=/usr/local/bin
+CC?= cc
+CFLAGS?= -O -pipe -Wall
-+LNETINC= -I/usr/local/include
-+LNETLIB= -L/usr/local/lib
++LNETINC= -I${LOCALBASE}/include
++LNETLIB= -L${LOCALBASE}/lib
+
+BINDIR= ${PREFIX}/sbin
+MANDIR= ${PREFIX}/man
diff --git a/net/tcptraceroute/files/patch-tcptraceroute.c b/net/tcptraceroute/files/patch-tcptraceroute.c
new file mode 100644
index 000000000000..28f15e1b7051
--- /dev/null
+++ b/net/tcptraceroute/files/patch-tcptraceroute.c
@@ -0,0 +1,26 @@
+--- tcptraceroute.c.orig Tue Oct 7 16:04:50 2003
++++ tcptraceroute.c Tue Oct 7 16:05:22 2003
+@@ -391,9 +391,9 @@
+ void usage(void)
+ {
+ printf("\n%s\n%s\n", VERSION, BANNER);
+- fatal("Usage: %s [-nNFSAE] [-i <interface>] [-f <first ttl>]
+- [-l <packet length>] [-q <number of queries>] [-t <tos>]
+- [-m <max ttl>] [-pP] <source port>] [-s <source address>]
++ fatal("Usage: %s [-nNFSAE] [-i <interface>] [-f <first ttl>] \
++ [-l <packet length>] [-q <number of queries>] [-t <tos>] \
++ [-m <max ttl>] [-pP] <source port>] [-s <source address>] \
+ [-w <wait time>] <host> [destination port] [packet length]\n\n", name);
+ }
+
+@@ -1182,8 +1182,8 @@
+ if (! (pcap = pcap_open_live(device, offset + SNAPLEN, 0, 10, errbuf)))
+ fatal("pcap_open_live failed: %s", errbuf);
+
+- safe_snprintf(filter, TEXTSIZE, "
+- (tcp and src host %s and src port %d and dst host %s)
++ safe_snprintf(filter, TEXTSIZE, " \
++ (tcp and src host %s and src port %d and dst host %s) \
+ or ((icmp[0] == 11 or icmp[0] == 3) and dst host %s)",
+ iptos(dst_ip), dst_prt, iptos(src_ip), iptos(src_ip));
+