Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Remove dead code. It is the same as the non-obs...



details:   https://anonhg.NetBSD.org/src/rev/2aceef523ae4
branches:  trunk
changeset: 322025:2aceef523ae4
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Apr 14 06:45:17 2018 +0000

description:
Remove dead code. It is the same as the non-obsolete one, since
ICMP6_DST_UNREACH_NOTNEIGHBOR == ICMP6_DST_UNREACH_BEYONDSCOPE,
and the code leads to the same errno value (EHOSTUNREACH).

diffstat:

 sys/netinet6/icmp6.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (35 lines):

diff -r 578e814a04f9 -r 2aceef523ae4 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Sat Apr 14 04:04:39 2018 +0000
+++ b/sys/netinet6/icmp6.c      Sat Apr 14 06:45:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.226 2018/04/12 07:28:10 maxv Exp $ */
+/*     $NetBSD: icmp6.c,v 1.227 2018/04/14 06:45:17 maxv Exp $ */
 /*     $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.226 2018/04/12 07:28:10 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.227 2018/04/14 06:45:17 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -570,16 +570,10 @@
                case ICMP6_DST_UNREACH_ADDR:
                        code = PRC_HOSTDEAD;
                        break;
-#ifdef COMPAT_RFC1885
-               case ICMP6_DST_UNREACH_NOTNEIGHBOR:
-                       code = PRC_UNREACH_SRCFAIL;
-                       break;
-#else
                case ICMP6_DST_UNREACH_BEYONDSCOPE:
                        /* I mean "source address was incorrect." */
                        code = PRC_UNREACH_NET;
                        break;
-#endif
                case ICMP6_DST_UNREACH_NOPORT:
                        code = PRC_UNREACH_PORT;
                        break;



Home | Main Index | Thread Index | Old Index