summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2013-10-20 11:03:00 +0000
committerphessler <phessler@openbsd.org>2013-10-20 11:03:00 +0000
commitdc01e491976fd30bd71a4912a9e6ec8a4e5ca36c (patch)
treec0563dc277ac816d20f19bcccdbf26debcb80045 /sys/netinet6/raw_ip6.c
parentWSDISPLAYIO_GTYPE ioctl support for KMS drivers. ok jsg@ (diff)
downloadwireguard-openbsd-dc01e491976fd30bd71a4912a9e6ec8a4e5ca36c.tar.xz
wireguard-openbsd-dc01e491976fd30bd71a4912a9e6ec8a4e5ca36c.zip
Put a large chunk of the IPv6 rdomain support in-tree.
Still some important missing pieces, and this is not yet enabled. OK bluhm@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index e62599bece3..5f3e75d7698 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.59 2013/10/17 16:27:47 bluhm Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.60 2013/10/20 11:03:03 phessler Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -305,7 +305,7 @@ rip6_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *d)
*/
in6p = NULL;
in6p = in6_pcbhashlookup(&rawin6pcbtable, &sa6->sin6_addr, 0,
- &sa6_src->sin6_addr, 0);
+ &sa6_src->sin6_addr, 0, rdomain);
#if 0
if (!in6p) {
/*
@@ -317,7 +317,8 @@ rip6_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *d)
*/
in6p = in_pcblookup(&rawin6pcbtable, &sa6->sin6_addr, 0,
(struct in6_addr *)&sa6_src->sin6_addr, 0,
- INPLOOKUP_WILDCARD | INPLOOKUP_IPV6);
+ INPLOOKUP_WILDCARD | INPLOOKUP_IPV6,
+ rdomain);
}
#endif
@@ -344,7 +345,7 @@ rip6_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *d)
}
(void) in6_pcbnotify(&rawin6pcbtable, sa6, 0,
- sa6_src, 0, cmd, cmdarg, notify);
+ sa6_src, 0, rdomain, cmd, cmdarg, notify);
}
/*