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>
This commit is contained in:
parent
5c52ba170f
commit
ca12a1a443
3 changed files with 6 additions and 3 deletions
|
@ -93,8 +93,9 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
|
|||
struct sock *sk;
|
||||
int err;
|
||||
__u64 seq;
|
||||
struct net *net = dev_net(skb->dev);
|
||||
|
||||
sk = inet6_lookup(dev_net(skb->dev), &dccp_hashinfo,
|
||||
sk = inet6_lookup(net, &dccp_hashinfo,
|
||||
&hdr->daddr, dh->dccph_dport,
|
||||
&hdr->saddr, dh->dccph_sport, inet6_iif(skb));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue