diff options
author | 1999-12-19 02:54:29 +0000 | |
---|---|---|
committer | 1999-12-19 02:54:29 +0000 | |
commit | cee4e6f0ac03601bb28fd10caece789fa14e9566 (patch) | |
tree | 74c9124bac0b8eda0a41f3b97acc4147a28d073b /sys/netinet6/raw_ipv6.c | |
parent | reject AF mismatch for inbonud multicast traffic. (diff) | |
download | wireguard-openbsd-cee4e6f0ac03601bb28fd10caece789fa14e9566.tar.xz wireguard-openbsd-cee4e6f0ac03601bb28fd10caece789fa14e9566.zip |
disallow AF mismatch on inbound.
Diffstat (limited to 'sys/netinet6/raw_ipv6.c')
-rw-r--r-- | sys/netinet6/raw_ipv6.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ipv6.c b/sys/netinet6/raw_ipv6.c index fa3a45ba5bf..34f7f68f341 100644 --- a/sys/netinet6/raw_ipv6.c +++ b/sys/netinet6/raw_ipv6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ipv6.c,v 1.9 1999/12/15 07:08:00 itojun Exp $ */ +/* $OpenBSD: raw_ipv6.c,v 1.10 1999/12/19 02:54:29 itojun Exp $ */ /* %%% copyright-nrl-95 This software is Copyright 1995-1998 by Randall Atkinson, Ronald Lee, @@ -43,7 +43,7 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>. * SUCH DAMAGE. * * @(#)raw_ip.c 8.7 (Berkeley) 5/15/95 - * $Id: raw_ipv6.c,v 1.9 1999/12/15 07:08:00 itojun Exp $ + * $Id: raw_ipv6.c,v 1.10 1999/12/19 02:54:29 itojun Exp $ */ #include <sys/param.h> @@ -264,6 +264,8 @@ rip6_input(mp, offp, proto) inp != (struct inpcb *)&rawin6pcbtable.inpt_queue; inp = inp->inp_queue.cqe_next) { + if (!(inp->inp_flags & INP_IPV6)) + continue; if (inp->inp_ipv6.ip6_nxt && inp->inp_ipv6.ip6_nxt != nexthdr) continue; if (!IN6_IS_ADDR_UNSPECIFIED(&inp->inp_laddr6) && |