| version 1.16, 2000/02/20 00:56:43 |
version 1.17, 2000/03/21 11:05:12 |
|
|
| /* $NetBSD$ */ |
/* $NetBSD$ */ |
| |
/* $KAME: ip6_input.c,v 1.72 2000/03/21 09:23:19 itojun Exp $ */ |
| |
|
| /* |
/* |
| * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
|
|
| in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr); |
in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr); |
| goto bad; |
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) || |
if (IN6_IS_ADDR_V4COMPAT(&ip6->ip6_src) || |
| IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { |
IN6_IS_ADDR_V4COMPAT(&ip6->ip6_dst)) { |