diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2013-10-20 11:03:04 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2013-10-20 11:03:04 +0000 |
commit | 51af3a791d7649a044d750e62f6fadb6a19a067f (patch) | |
tree | 89492abc1a604c6e28a2e0a804e6e0a16891f066 /sys/netinet6/raw_ip6.c | |
parent | 5d95e5679b62bf050ffb3997ec86ef7f5f611b9a (diff) |
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.c | 9 |
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); } /* |