Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
src: Remove dead code. It is the same as the non-obsolete one, s...
details: https://anonhg.NetBSD.org/src/rev/b6428f0ed5fb
branches: trunk
changeset: 318157:b6428f0ed5fb
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 a5e07328cca4 -r b6428f0ed5fb 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