summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvgross <vgross@openbsd.org>2016-04-11 15:28:03 +0000
committervgross <vgross@openbsd.org>2016-04-11 15:28:03 +0000
commit500fb049f1972f2ef6d600832e07ca7fe5ac4523 (patch)
treeac722b6a60e365a1e7652dcd1fb47d1366d0a0c1
parentSearch in the correct routing table if NPF is not defined. (diff)
downloadwireguard-openbsd-500fb049f1972f2ef6d600832e07ca7fe5ac4523.tar.xz
wireguard-openbsd-500fb049f1972f2ef6d600832e07ca7fe5ac4523.zip
This code chunk has been disabled since its import, and what is does is
quite unsafe. Juste delete it. Ok mpi@
-rw-r--r--sys/netinet6/raw_ip6.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 605ba4905dd..b6b4966118d 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.89 2016/03/29 11:57:51 chl Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.90 2016/04/11 15:28:03 vgross Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -285,21 +285,6 @@ rip6_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *d)
*/
in6p = in6_pcbhashlookup(&rawin6pcbtable, &sa6->sin6_addr, 0,
&sa6_src->sin6_addr, 0, rdomain);
-#if 0
- if (!in6p) {
- /*
- * As the use of sendto(2) is fairly popular,
- * we may want to allow non-connected pcb too.
- * But it could be too weak against attacks...
- * We should at least check if the local
- * address (= s) is really ours.
- */
- in6p = in_pcblookup(&rawin6pcbtable, &sa6->sin6_addr, 0,
- (struct in6_addr *)&sa6_src->sin6_addr, 0,
- INPLOOKUP_WILDCARD | INPLOOKUP_IPV6,
- rdomain);
- }
-#endif
if (in6p && in6p->inp_ipv6.ip6_nxt &&
in6p->inp_ipv6.ip6_nxt == nxt)