Module Name:    src
Committed By:   maxv
Date:           Wed May  9 07:05:42 UTC 2018

Modified Files:
        src/usr.sbin/route6d: route6d.c

Log Message:
Remove dead/broken code.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/usr.sbin/route6d/route6d.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/route6d/route6d.c
diff -u src/usr.sbin/route6d/route6d.c:1.68 src/usr.sbin/route6d/route6d.c:1.69
--- src/usr.sbin/route6d/route6d.c:1.68	Mon Apr  4 07:37:08 2016
+++ src/usr.sbin/route6d/route6d.c	Wed May  9 07:05:42 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: route6d.c,v 1.68 2016/04/04 07:37:08 ozaki-r Exp $	*/
+/*	$NetBSD: route6d.c,v 1.69 2018/05/09 07:05:42 maxv Exp $	*/
 /*	$KAME: route6d.c,v 1.94 2002/10/26 20:08:55 itojun Exp $	*/
 
 /*
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef	lint
-__RCSID("$NetBSD: route6d.c,v 1.68 2016/04/04 07:37:08 ozaki-r Exp $");
+__RCSID("$NetBSD: route6d.c,v 1.69 2018/05/09 07:05:42 maxv Exp $");
 #endif
 
 #include <stdbool.h>
@@ -610,19 +610,11 @@ init(void)
 	}
 
 	i = 1;
-#ifdef IPV6_RECVPKTINFO
 	if (setsockopt(ripsock, IPPROTO_IPV6, IPV6_RECVPKTINFO, &i,
 	    sizeof(i)) < 0) {
 		fatal("rip IPV6_RECVPKTINFO");
 		/*NOTREACHED*/
 	}
-#else  /* old adv. API */
-	if (setsockopt(ripsock, IPPROTO_IPV6, IPV6_PKTINFO, &i,
-	    sizeof(i)) < 0) {
-		fatal("rip IPV6_PKTINFO");
-		/*NOTREACHED*/
-	}
-#endif 
 
 	memset(&hints, 0, sizeof(hints));
 	hints.ai_family = PF_INET6;

Reply via email to