diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-17 05:28:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-17 05:28:42 +0200 |
commit | ca12a1a443a51298afcca627ad0bcbd8ad1dcddc (patch) | |
tree | 9eebfe3f3b5812ea524d0b32223fb622a8d12bc8 /net/ipv4/arp.c | |
parent | sock: add net to prot->enter_memory_pressure callback (diff) | |
download | linux-ca12a1a443a51298afcca627ad0bcbd8ad1dcddc.tar.xz linux-ca12a1a443a51298afcca627ad0bcbd8ad1dcddc.zip |
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/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 29df75a6bcc7..aab98b8a9945 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c @@ -421,8 +421,9 @@ static int arp_filter(__be32 sip, __be32 tip, struct net_device *dev) struct rtable *rt; int flag = 0; /*unsigned long now; */ + struct net *net = dev_net(dev); - if (ip_route_output_key(dev_net(dev), &rt, &fl) < 0) + if (ip_route_output_key(net, &rt, &fl) < 0) return 1; if (rt->u.dst.dev != dev) { NET_INC_STATS_BH(LINUX_MIB_ARPFILTER); |