aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/arp.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-12-16 16:32:48 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:12 -0500
commit586f12115264b767ea6a48ce081ca25a39c1e3dd (patch)
tree48bb41f07d4dc2a1e0d9f9d71286594d3b9800fa /net/ipv4/arp.c
parent9355bbd685bf705a7f7bd6470b92ca0562c7a661 (diff)
[IPV4]: Switch users of ipv4_devconf(_all) to use the pernet one
These are scattered over the code, but almost all the "critical" places already have the proper struct net at hand except for snmp proc showing function and routing rtnl handler. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 5daf504ba3b3..1102fb3d8018 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -860,7 +860,7 @@ static int arp_process(struct sk_buff *skb)
860 860
861 n = __neigh_lookup(&arp_tbl, &sip, dev, 0); 861 n = __neigh_lookup(&arp_tbl, &sip, dev, 0);
862 862
863 if (IPV4_DEVCONF_ALL(ARP_ACCEPT)) { 863 if (IPV4_DEVCONF_ALL(dev->nd_net, ARP_ACCEPT)) {
864 /* Unsolicited ARP is not accepted by default. 864 /* Unsolicited ARP is not accepted by default.
865 It is possible, that this option should be enabled for some 865 It is possible, that this option should be enabled for some
866 devices (strip is candidate) 866 devices (strip is candidate)
@@ -955,7 +955,7 @@ out_of_mem:
955static int arp_req_set_proxy(struct net *net, struct net_device *dev, int on) 955static int arp_req_set_proxy(struct net *net, struct net_device *dev, int on)
956{ 956{
957 if (dev == NULL) { 957 if (dev == NULL) {
958 IPV4_DEVCONF_ALL(PROXY_ARP) = on; 958 IPV4_DEVCONF_ALL(net, PROXY_ARP) = on;
959 return 0; 959 return 0;
960 } 960 }
961 if (__in_dev_get_rtnl(dev)) { 961 if (__in_dev_get_rtnl(dev)) {