Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/traceroute6 Remove dead/broken code. We want to fav...



details:   https://anonhg.NetBSD.org/src/rev/465eef2f8ab0
branches:  trunk
changeset: 361308:465eef2f8ab0
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Apr 23 10:14:12 2018 +0000

description:
Remove dead/broken code. We want to favor RFC3542 over RFC2292. No
functional change.

diffstat:

 usr.sbin/traceroute6/traceroute6.c |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (45 lines):

diff -r 49d3c29fe244 -r 465eef2f8ab0 usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c        Mon Apr 23 09:58:35 2018 +0000
+++ b/usr.sbin/traceroute6/traceroute6.c        Mon Apr 23 10:14:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: traceroute6.c,v 1.47 2018/04/23 09:58:35 maxv Exp $    */
+/*     $NetBSD: traceroute6.c,v 1.48 2018/04/23 10:14:12 maxv Exp $    */
 /*     $KAME: traceroute6.c,v 1.67 2004/01/25 03:24:39 itojun Exp $    */
 
 /*
@@ -75,7 +75,7 @@
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: traceroute6.c,v 1.47 2018/04/23 09:58:35 maxv Exp $");
+__RCSID("$NetBSD: traceroute6.c,v 1.48 2018/04/23 10:14:12 maxv Exp $");
 #endif
 #endif
 
@@ -384,26 +384,14 @@
        max_hops = i;
 
        /* specify to tell receiving interface */
-#ifdef IPV6_RECVPKTINFO
        if (setsockopt(rcvsock, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on,
            sizeof(on)) < 0)
                err(1, "setsockopt(IPV6_RECVPKTINFO)");
-#else  /* old adv. API */
-       if (setsockopt(rcvsock, IPPROTO_IPV6, IPV6_PKTINFO, &on,
-           sizeof(on)) < 0)
-               err(1, "setsockopt(IPV6_PKTINFO)");
-#endif
 
        /* specify to tell value of hoplimit field of received IP6 hdr */
-#ifdef IPV6_RECVHOPLIMIT
        if (setsockopt(rcvsock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &on,
            sizeof(on)) < 0)
                err(1, "setsockopt(IPV6_RECVHOPLIMIT)");
-#else  /* old adv. API */
-       if (setsockopt(rcvsock, IPPROTO_IPV6, IPV6_HOPLIMIT, &on,
-           sizeof(on)) < 0)
-               err(1, "setsockopt(IPV6_HOPLIMIT)");
-#endif
 
        seq = 0;
 



Home | Main Index | Thread Index | Old Index