summaryrefslogtreecommitdiff
path: root/net/tcptraceroute
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-03-23 13:50:12 +0000
committerjoerg <joerg@pkgsrc.org>2006-03-23 13:50:12 +0000
commit17179a4fb3406d9ec963383ba3290997743027be (patch)
treee68cc1eb3eeaec3e9581d31382365c208c4e17b0 /net/tcptraceroute
parent91649a67c07300b23aeebcc82822cc23a7f21c82 (diff)
downloadpkgsrc-17179a4fb3406d9ec963383ba3290997743027be.tar.gz
Fix errno.
Diffstat (limited to 'net/tcptraceroute')
-rw-r--r--net/tcptraceroute/distinfo4
-rw-r--r--net/tcptraceroute/patches/patch-ab26
2 files changed, 19 insertions, 11 deletions
diff --git a/net/tcptraceroute/distinfo b/net/tcptraceroute/distinfo
index 97040762526..83f30768096 100644
--- a/net/tcptraceroute/distinfo
+++ b/net/tcptraceroute/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.4 2005/02/24 12:14:05 agc Exp $
+$NetBSD: distinfo,v 1.5 2006/03/23 13:50:12 joerg Exp $
SHA1 (tcptraceroute-1.4.tar.gz) = 1dbd9a0a10b11695b0204bea460463a9dd921338
RMD160 (tcptraceroute-1.4.tar.gz) = 6728355ca971b3e648e95704e74826cbc38fa94f
Size (tcptraceroute-1.4.tar.gz) = 31918 bytes
SHA1 (patch-aa) = 26899ae5898dcdbaa8b12a178ff6c2b362a675c9
-SHA1 (patch-ab) = abd5a77df099062983f4c825120d399deb3b6b16
+SHA1 (patch-ab) = 13aabeeaa1432ab55bda1f056a0dd7a236a38dd4
diff --git a/net/tcptraceroute/patches/patch-ab b/net/tcptraceroute/patches/patch-ab
index 9d0f2987237..53bf4455d0f 100644
--- a/net/tcptraceroute/patches/patch-ab
+++ b/net/tcptraceroute/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.3 2004/09/19 21:38:21 kim Exp $
+$NetBSD: patch-ab,v 1.4 2006/03/23 13:50:12 joerg Exp $
---- tcptraceroute.c.orig 2002-07-30 17:51:27.000000000 -0400
-+++ tcptraceroute.c 2004-09-19 17:34:05.000000000 -0400
-@@ -209,7 +209,7 @@
+--- tcptraceroute.c.orig 2002-07-30 21:51:27.000000000 +0000
++++ tcptraceroute.c
+@@ -209,7 +209,7 @@ Updates are available from http://michae
#define AF_LINK AF_INET /* BSD defines some AF_INET network interfaces as AF_LINK */
#endif
@@ -11,7 +11,15 @@ $NetBSD: patch-ab,v 1.3 2004/09/19 21:38:21 kim Exp $
#define HASSALEN /* Awful, awful hack to make subinterfaces work on BSD. */
#endif
-@@ -391,10 +391,10 @@
+@@ -340,7 +340,6 @@ typedef struct {
+ extern char *optarg;
+ extern int optind, opterr, optopt;
+ extern char pcap_version[];
+-extern int errno;
+
+ /*
+ * fatal() and pfatal() are useful stdarg functions from
+@@ -391,10 +390,10 @@ void pfatal(char *err)
void usage(void)
{
printf("\n%s\n%s\n", VERSION, BANNER);
@@ -26,7 +34,7 @@ $NetBSD: patch-ab,v 1.3 2004/09/19 21:38:21 kim Exp $
}
void about(void)
-@@ -724,8 +724,7 @@
+@@ -724,8 +723,7 @@ void getinterfaces(void)
}
#endif
@@ -36,7 +44,7 @@ $NetBSD: patch-ab,v 1.3 2004/09/19 21:38:21 kim Exp $
{
debug("Ignoring non-AF_INET address on interface %s\n",
sprintable(ifr.ifr_name));
-@@ -1182,9 +1181,9 @@
+@@ -1182,9 +1180,9 @@ void initcapture(void)
if (! (pcap = pcap_open_live(device, offset + SNAPLEN, 0, 10, errbuf)))
fatal("pcap_open_live failed: %s", errbuf);
@@ -49,7 +57,7 @@ $NetBSD: patch-ab,v 1.3 2004/09/19 21:38:21 kim Exp $
iptos(dst_ip), dst_prt, iptos(src_ip), iptos(src_ip));
if (o_nofilter)
-@@ -1783,9 +1782,14 @@
+@@ -1783,9 +1781,14 @@ int main(int argc, char **argv)
o_dontfrag = 0;
o_timeout = 3;
o_nofilter = 0;
@@ -65,7 +73,7 @@ $NetBSD: patch-ab,v 1.3 2004/09/19 21:38:21 kim Exp $
#if defined (__SVR4) && defined (__sun)
o_trackport = 1; /* --track-port should be the default for Solaris */
#else
-@@ -2003,6 +2007,6 @@
+@@ -2003,6 +2006,6 @@ int main(int argc, char **argv)
defaults();
initcapture();