summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-07-27 06:29:11 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-07-27 06:29:11 +0000
commit596e49de3b5d9b332f025d6b83a39d8a395c6ea3 (patch)
treebfc6464f2e2b19e1fe5fb2c0dfb4388217ba7ca6 /sys/netinet6
parent6722de2908d59f0c52e470c09db302c083f1862b (diff)
raw6/udp6 sockets are okay with :: in src.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/raw_ipv6.c19
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;