diff options
author | ume <ume@FreeBSD.org> | 2003-10-28 16:45:29 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-28 16:45:29 +0000 |
commit | 8ff2243783b2952157d3fdebff61c57256b6295e (patch) | |
tree | 74827fde6307c025941b7927b6b3f1c2b6d75a29 | |
parent | 67fa4b4d825044d92dd87b7932decc8df93fa2cd (diff) | |
download | FreeBSD-src-8ff2243783b2952157d3fdebff61c57256b6295e.zip FreeBSD-src-8ff2243783b2952157d3fdebff61c57256b6295e.tar.gz |
make sure to accept only IPv6 packet.
Obtained from: KAME
-rw-r--r-- | sys/netinet6/ip6_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index fdeebf7..e068928 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1096,6 +1096,9 @@ ip6_savecontrol(in6p, mp, ip6, m) } #endif + if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) + return; + /* RFC 2292 sec. 5 */ if ((in6p->in6p_flags & IN6P_PKTINFO) != 0) { struct in6_pktinfo pi6; |