summaryrefslogtreecommitdiff
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
parent6722de2908d59f0c52e470c09db302c083f1862b (diff)
raw6/udp6 sockets are okay with :: in src.
-rw-r--r--sys/netinet/udp_usrreq.c15
-rw-r--r--sys/netinet6/raw_ipv6.c19
2 files changed, 3 insertions, 31 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 2547b166ffb..7da01d6763e 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.46 2000/07/27 04:05:27 itojun Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.47 2000/07/27 06:29:09 itojun Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -290,19 +290,6 @@ udp_input(m, va_alist)
}
/*
- * 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.
- */
- if (IN6_IS_ADDR_UNSPECIFIED(&ipv6->ip6_src)) {
- /* XXX stat */
- goto bad;
- }
-
- /*
* In IPv6, the UDP checksum is ALWAYS used.
*/
if ((uh->uh_sum = in6_cksum(m, IPPROTO_UDP, iphlen, len))) {
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;