Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 #if 0'ed too strong sanity check against packet...



details:   https://anonhg.NetBSD.org/src/rev/34ce0e484a7c
branches:  trunk
changeset: 483940:34ce0e484a7c
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Mar 21 11:05:12 2000 +0000

description:
#if 0'ed too strong sanity check against packets with v4 compatible addresses.
we may want to re-enable it whenever mech-xx clarifies router behavior
against native IPv6 packet with IPv4 compatible addresses.

diffstat:

 sys/netinet6/ip6_input.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r e112f13c2b73 -r 34ce0e484a7c sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c  Tue Mar 21 10:56:23 2000 +0000
+++ b/sys/netinet6/ip6_input.c  Tue Mar 21 11:05:12 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: ip6_input.c,v 1.16 2000/02/20 00:56:43 darrenr Exp $   */
+/*     $NetBSD: ip6_input.c,v 1.17 2000/03/21 11:05:12 itojun Exp $    */
+/*     $KAME: ip6_input.c,v 1.72 2000/03/21 09:23:19 itojun Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -369,9 +370,13 @@
                in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr);
                goto bad;
        }
-#if 1
+#if 0
        /*
-        * We don't support it, so it is strange to get this.
+        * Reject packets with IPv4 compatible addresses (auto tunnel).
+        *
+        * The code forbids auto tunnel relay case in RFC1933 (the check is
+        * stronger than RFC1933).  We may want to re-enable it if mech-xx
+        * is revised to forbid relaying case.
         */
        if (IN6_IS_ADDR_V4COMPAT(&ip6->ip6_src) ||
            IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) {



Home | Main Index | Thread Index | Old Index