aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r--net/ipv4/arp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 9ab9d534fbac..78dd3443016c 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -103,6 +103,7 @@
103#include <linux/sysctl.h> 103#include <linux/sysctl.h>
104#endif 104#endif
105 105
106#include <net/net_namespace.h>
106#include <net/ip.h> 107#include <net/ip.h>
107#include <net/icmp.h> 108#include <net/icmp.h>
108#include <net/route.h> 109#include <net/route.h>
@@ -1400,7 +1401,7 @@ static const struct file_operations arp_seq_fops = {
1400 1401
1401static int __init arp_proc_init(void) 1402static int __init arp_proc_init(void)
1402{ 1403{
1403 if (!proc_net_fops_create("arp", S_IRUGO, &arp_seq_fops)) 1404 if (!proc_net_fops_create(&init_net, "arp", S_IRUGO, &arp_seq_fops))
1404 return -ENOMEM; 1405 return -ENOMEM;
1405 return 0; 1406 return 0;
1406} 1407}