aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/netfilter.c10
-rw-r--r--net/netfilter/Makefile1
-rw-r--r--net/netfilter/core.c9
-rw-r--r--net/netfilter/nf_sysctl.c25
4 files changed, 19 insertions, 26 deletions
diff --git a/net/ipv4/netfilter.c b/net/ipv4/netfilter.c
index 0ed843ed420a..63221553d26b 100644
--- a/net/ipv4/netfilter.c
+++ b/net/ipv4/netfilter.c
@@ -211,3 +211,13 @@ static void ipv4_netfilter_fini(void)
211 211
212module_init(ipv4_netfilter_init); 212module_init(ipv4_netfilter_init);
213module_exit(ipv4_netfilter_fini); 213module_exit(ipv4_netfilter_fini);
214
215#ifdef CONFIG_SYSCTL
216struct ctl_path nf_net_ipv4_netfilter_sysctl_path[] = {
217 { .procname = "net", .ctl_name = CTL_NET, },
218 { .procname = "ipv4", .ctl_name = NET_IPV4, },
219 { .procname = "netfilter", .ctl_name = NET_IPV4_NETFILTER, },
220 { }
221};
222EXPORT_SYMBOL_GPL(nf_net_ipv4_netfilter_sysctl_path);
223#endif /* CONFIG_SYSCTL */
diff --git a/net/netfilter/Makefile b/net/netfilter/Makefile
index c910caee0d4f..ea7508387f95 100644
--- a/net/netfilter/Makefile
+++ b/net/netfilter/Makefile
@@ -4,7 +4,6 @@ nf_conntrack-y := nf_conntrack_core.o nf_conntrack_standalone.o nf_conntrack_exp
4nf_conntrack-$(CONFIG_NF_CONNTRACK_EVENTS) += nf_conntrack_ecache.o 4nf_conntrack-$(CONFIG_NF_CONNTRACK_EVENTS) += nf_conntrack_ecache.o
5 5
6obj-$(CONFIG_NETFILTER) = netfilter.o 6obj-$(CONFIG_NETFILTER) = netfilter.o
7obj-$(CONFIG_SYSCTL) += nf_sysctl.o
8 7
9obj-$(CONFIG_NETFILTER_NETLINK) += nfnetlink.o 8obj-$(CONFIG_NETFILTER_NETLINK) += nfnetlink.o
10obj-$(CONFIG_NETFILTER_NETLINK_QUEUE) += nfnetlink_queue.o 9obj-$(CONFIG_NETFILTER_NETLINK_QUEUE) += nfnetlink_queue.o
diff --git a/net/netfilter/core.c b/net/netfilter/core.c
index e0263445484a..c4065b8f9a95 100644
--- a/net/netfilter/core.c
+++ b/net/netfilter/core.c
@@ -272,3 +272,12 @@ void __init netfilter_init(void)
272 if (netfilter_log_init() < 0) 272 if (netfilter_log_init() < 0)
273 panic("cannot initialize nf_log"); 273 panic("cannot initialize nf_log");
274} 274}
275
276#ifdef CONFIG_SYSCTL
277struct ctl_path nf_net_netfilter_sysctl_path[] = {
278 { .procname = "net", .ctl_name = CTL_NET, },
279 { .procname = "netfilter", .ctl_name = NET_NETFILTER, },
280 { }
281};
282EXPORT_SYMBOL_GPL(nf_net_netfilter_sysctl_path);
283#endif /* CONFIG_SYSCTL */
diff --git a/net/netfilter/nf_sysctl.c b/net/netfilter/nf_sysctl.c
deleted file mode 100644
index d9fcc893301d..000000000000
--- a/net/netfilter/nf_sysctl.c
+++ /dev/null
@@ -1,25 +0,0 @@
1/* nf_sysctl.c netfilter sysctl registration/unregistation
2 *
3 * Copyright (c) 2006 Patrick McHardy <kaber@trash.net>
4 */
5#include <linux/module.h>
6#include <linux/sysctl.h>
7#include <linux/string.h>
8#include <linux/slab.h>
9
10/* net/netfilter */
11struct ctl_path nf_net_netfilter_sysctl_path[] = {
12 { .procname = "net", .ctl_name = CTL_NET, },
13 { .procname = "netfilter", .ctl_name = NET_NETFILTER, },
14 { }
15};
16EXPORT_SYMBOL_GPL(nf_net_netfilter_sysctl_path);
17
18/* net/ipv4/netfilter */
19struct ctl_path nf_net_ipv4_netfilter_sysctl_path[] = {
20 { .procname = "net", .ctl_name = CTL_NET, },
21 { .procname = "ipv4", .ctl_name = NET_IPV4, },
22 { .procname = "netfilter", .ctl_name = NET_IPV4_NETFILTER, },
23 { }
24};
25EXPORT_SYMBOL_GPL(nf_net_ipv4_netfilter_sysctl_path);