diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-31 08:07:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 22:28:20 -0500 |
commit | d86e0dac2ce412715181f792aa0749fe3effff11 (patch) | |
tree | bc9197a7316c7d7641112d5f5975d8b91afdbd08 /net/dccp | |
parent | c67499c0e772064b37ad75eb69b28fc218752636 (diff) |
[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 <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/ipv6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index f42b75ce7f5c..ed0a0053a797 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
@@ -101,8 +101,8 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
101 | int err; | 101 | int err; |
102 | __u64 seq; | 102 | __u64 seq; |
103 | 103 | ||
104 | sk = inet6_lookup(&dccp_hashinfo, &hdr->daddr, dh->dccph_dport, | 104 | sk = inet6_lookup(&init_net, &dccp_hashinfo, &hdr->daddr, dh->dccph_dport, |
105 | &hdr->saddr, dh->dccph_sport, inet6_iif(skb)); | 105 | &hdr->saddr, dh->dccph_sport, inet6_iif(skb)); |
106 | 106 | ||
107 | if (sk == NULL) { | 107 | if (sk == NULL) { |
108 | ICMP6_INC_STATS_BH(__in6_dev_get(skb->dev), ICMP6_MIB_INERRORS); | 108 | ICMP6_INC_STATS_BH(__in6_dev_get(skb->dev), ICMP6_MIB_INERRORS); |
@@ -366,7 +366,7 @@ static struct sock *dccp_v6_hnd_req(struct sock *sk,struct sk_buff *skb) | |||
366 | if (req != NULL) | 366 | if (req != NULL) |
367 | return dccp_check_req(sk, skb, req, prev); | 367 | return dccp_check_req(sk, skb, req, prev); |
368 | 368 | ||
369 | nsk = __inet6_lookup_established(&dccp_hashinfo, | 369 | nsk = __inet6_lookup_established(&init_net, &dccp_hashinfo, |
370 | &iph->saddr, dh->dccph_sport, | 370 | &iph->saddr, dh->dccph_sport, |
371 | &iph->daddr, ntohs(dh->dccph_dport), | 371 | &iph->daddr, ntohs(dh->dccph_dport), |
372 | inet6_iif(skb)); | 372 | inet6_iif(skb)); |
@@ -797,7 +797,7 @@ static int dccp_v6_rcv(struct sk_buff *skb) | |||
797 | 797 | ||
798 | /* Step 2: | 798 | /* Step 2: |
799 | * Look up flow ID in table and get corresponding socket */ | 799 | * Look up flow ID in table and get corresponding socket */ |
800 | sk = __inet6_lookup(&dccp_hashinfo, &ipv6_hdr(skb)->saddr, | 800 | sk = __inet6_lookup(&init_net, &dccp_hashinfo, &ipv6_hdr(skb)->saddr, |
801 | dh->dccph_sport, | 801 | dh->dccph_sport, |
802 | &ipv6_hdr(skb)->daddr, ntohs(dh->dccph_dport), | 802 | &ipv6_hdr(skb)->daddr, ntohs(dh->dccph_dport), |
803 | inet6_iif(skb)); | 803 | inet6_iif(skb)); |