diff options
author | 2000-07-27 06:29:09 +0000 | |
---|---|---|
committer | 2000-07-27 06:29:09 +0000 | |
commit | e2aa3a4f729f8bbab5c8c59cf2f5bb39f6213996 (patch) | |
tree | 765e4e01a0ad7565df7f0daaca1fa3633e427c01 /sys/netinet6/raw_ipv6.c | |
parent | be proactive about unspecified IPv6 source address. pcb layer uses (diff) | |
download | wireguard-openbsd-e2aa3a4f729f8bbab5c8c59cf2f5bb39f6213996.tar.xz wireguard-openbsd-e2aa3a4f729f8bbab5c8c59cf2f5bb39f6213996.zip |
raw6/udp6 sockets are okay with :: in src.
Diffstat (limited to 'sys/netinet6/raw_ipv6.c')
-rw-r--r-- | sys/netinet6/raw_ipv6.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/netinet6/raw_ipv6.c b/sys/netinet6/raw_ipv6.c index b20a4c53120..f4af285d65c 100644 --- a/sys/netinet6/raw_ipv6.c +++ b/sys/netinet6/raw_ipv6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ipv6.c,v 1.26 2000/07/27 04:05:27 itojun Exp $ */ +/* $OpenBSD: raw_ipv6.c,v 1.27 2000/07/27 06:29:10 itojun Exp $ */ /* %%% copyright-nrl-95 @@ -44,7 +44,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.26 2000/07/27 04:05:27 itojun Exp $ + * $Id: raw_ipv6.c,v 1.27 2000/07/27 06:29:10 itojun Exp $ */ #include <sys/param.h> @@ -224,21 +224,6 @@ rip6_input(mp, offp, proto) goto ret; } - /* - * Be proactive about unspecified IPv6 address in source. - * As we use all-zero to indicate unbounded/unconnected pcb, - * unspecified IPv6 address can be used to confuse us. - * - * Note that packets with unspecified IPv6 destination is - * already dropped in ip6_input. - * - * XXX not sure if we want this for raw IPv6 socket... - */ - if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) { - /* XXX stat */ - goto ret; - } - bzero(&opts, sizeof(opts)); bzero(&srcsa, sizeof(struct sockaddr_in6)); srcsa.sin6_family = AF_INET6; |