diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-17 03:28:42 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-17 03:28:42 (GMT) |
commit | ca12a1a443a51298afcca627ad0bcbd8ad1dcddc (patch) | |
tree | 9eebfe3f3b5812ea524d0b32223fb622a8d12bc8 /net/ipv6 | |
parent | 5c52ba170f8167511bdb65b981f4582100c40675 (diff) | |
download | linux-ca12a1a443a51298afcca627ad0bcbd8ad1dcddc.tar.xz |
inet: prepare net on the stack for NET accounting macros
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 3895d91..d58b83a 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -323,8 +323,9 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, int err; struct tcp_sock *tp; __u32 seq; + struct net *net = dev_net(skb->dev); - sk = inet6_lookup(dev_net(skb->dev), &tcp_hashinfo, &hdr->daddr, + sk = inet6_lookup(net, &tcp_hashinfo, &hdr->daddr, th->dest, &hdr->saddr, th->source, skb->dev->ifindex); if (sk == NULL) { |