mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[NETNS]: Tcp-v6 sockets per-net lookup.
Add a net argument to inet6_lookup and propagate it further. Actually, this is tcp-v6 implementation of what was done for tcp-v4 sockets in a previous patch. Signed-off-by: Pavel Emelyanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c67499c0e7
commit
d86e0dac2c
6 changed files with 43 additions and 36 deletions
|
|
@ -274,7 +274,7 @@ static int inet_diag_get_exact(struct sk_buff *in_skb,
|
|||
}
|
||||
#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
|
||||
else if (req->idiag_family == AF_INET6) {
|
||||
sk = inet6_lookup(hashinfo,
|
||||
sk = inet6_lookup(&init_net, hashinfo,
|
||||
(struct in6_addr *)req->id.idiag_dst,
|
||||
req->id.idiag_dport,
|
||||
(struct in6_addr *)req->id.idiag_src,
|
||||
|
|
|
|||
Loading…
Reference in a new issue