diff options
author | Vincent Gross <vgross@cvs.openbsd.org> | 2016-04-11 15:28:04 +0000 |
---|---|---|
committer | Vincent Gross <vgross@cvs.openbsd.org> | 2016-04-11 15:28:04 +0000 |
commit | b2d5fcdbc390598587da887f7e9f1102f23533f0 (patch) | |
tree | 6b886939baeb92bfdaf702b954e6c632bd7c9681 /sys/netinet6/raw_ip6.c | |
parent | 3ba81960e76d6083baf01895814eccd952a72968 (diff) |
This code chunk has been disabled since its import, and what is does is
quite unsafe. Juste delete it.
Ok mpi@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r-- | sys/netinet6/raw_ip6.c | 17 |
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) |