Skip to content
Snippets Groups Projects
Commit 06733c26 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

kernel: keep the igmp proc support even with PROC_STRIPPED, some tools still use it


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 36307
parent a41fb84d
No related branches found
No related tags found
No related merge requests found
......@@ -255,17 +255,6 @@
proc_net_remove(net, "route");
}
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -2673,6 +2673,8 @@ static struct pernet_operations igmp_net
int __init igmp_mc_proc_init(void)
{
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED))
+ return 0;
return register_pernet_subsys(&igmp_net_ops);
}
#endif
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -71,6 +71,10 @@
......
......@@ -225,17 +225,6 @@
remove_proc_entry("route", net->proc_net);
}
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -2674,6 +2674,8 @@ static struct pernet_operations igmp_net
int __init igmp_mc_proc_init(void)
{
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED))
+ return 0;
return register_pernet_subsys(&igmp_net_ops);
}
#endif
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -71,6 +71,10 @@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment