aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/mcast.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/mcast.c')
-rw-r--r--net/ipv6/mcast.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index ae9881832a7e..a41d5a0b50cc 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -49,6 +49,7 @@
49#include <linux/netfilter.h> 49#include <linux/netfilter.h>
50#include <linux/netfilter_ipv6.h> 50#include <linux/netfilter_ipv6.h>
51 51
52#include <net/net_namespace.h>
52#include <net/sock.h> 53#include <net/sock.h>
53#include <net/snmp.h> 54#include <net/snmp.h>
54 55
@@ -2658,8 +2659,8 @@ int __init igmp6_init(struct net_proto_family *ops)
2658 np->hop_limit = 1; 2659 np->hop_limit = 1;
2659 2660
2660#ifdef CONFIG_PROC_FS 2661#ifdef CONFIG_PROC_FS
2661 proc_net_fops_create("igmp6", S_IRUGO, &igmp6_mc_seq_fops); 2662 proc_net_fops_create(&init_net, "igmp6", S_IRUGO, &igmp6_mc_seq_fops);
2662 proc_net_fops_create("mcfilter6", S_IRUGO, &igmp6_mcf_seq_fops); 2663 proc_net_fops_create(&init_net, "mcfilter6", S_IRUGO, &igmp6_mcf_seq_fops);
2663#endif 2664#endif
2664 2665
2665 return 0; 2666 return 0;
@@ -2671,7 +2672,7 @@ void igmp6_cleanup(void)
2671 igmp6_socket = NULL; /* for safety */ 2672 igmp6_socket = NULL; /* for safety */
2672 2673
2673#ifdef CONFIG_PROC_FS 2674#ifdef CONFIG_PROC_FS
2674 proc_net_remove("mcfilter6"); 2675 proc_net_remove(&init_net, "mcfilter6");
2675 proc_net_remove("igmp6"); 2676 proc_net_remove(&init_net, "igmp6");
2676#endif 2677#endif
2677} 2678}