From a25da23509f586c987f1af450566f0cda14d5d87 Mon Sep 17 00:00:00 2001 From: itojun Date: Tue, 21 Mar 2000 11:05:12 +0000 Subject: [PATCH] #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. --- sys/netinet6/ip6_input.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index e7e427481843..4d1d3d5d07e2 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -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 @@ ip6_input(m) 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)) {