diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter.c | 10 | ||||
-rw-r--r-- | net/netfilter/Makefile | 1 | ||||
-rw-r--r-- | net/netfilter/core.c | 9 | ||||
-rw-r--r-- | net/netfilter/nf_sysctl.c | 25 |
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 | ||
212 | module_init(ipv4_netfilter_init); | 212 | module_init(ipv4_netfilter_init); |
213 | module_exit(ipv4_netfilter_fini); | 213 | module_exit(ipv4_netfilter_fini); |
214 | |||
215 | #ifdef CONFIG_SYSCTL | ||
216 | struct 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 | }; | ||
222 | EXPORT_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 | |||
4 | nf_conntrack-$(CONFIG_NF_CONNTRACK_EVENTS) += nf_conntrack_ecache.o | 4 | nf_conntrack-$(CONFIG_NF_CONNTRACK_EVENTS) += nf_conntrack_ecache.o |
5 | 5 | ||
6 | obj-$(CONFIG_NETFILTER) = netfilter.o | 6 | obj-$(CONFIG_NETFILTER) = netfilter.o |
7 | obj-$(CONFIG_SYSCTL) += nf_sysctl.o | ||
8 | 7 | ||
9 | obj-$(CONFIG_NETFILTER_NETLINK) += nfnetlink.o | 8 | obj-$(CONFIG_NETFILTER_NETLINK) += nfnetlink.o |
10 | obj-$(CONFIG_NETFILTER_NETLINK_QUEUE) += nfnetlink_queue.o | 9 | obj-$(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 | ||
277 | struct ctl_path nf_net_netfilter_sysctl_path[] = { | ||
278 | { .procname = "net", .ctl_name = CTL_NET, }, | ||
279 | { .procname = "netfilter", .ctl_name = NET_NETFILTER, }, | ||
280 | { } | ||
281 | }; | ||
282 | EXPORT_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 */ | ||
11 | struct ctl_path nf_net_netfilter_sysctl_path[] = { | ||
12 | { .procname = "net", .ctl_name = CTL_NET, }, | ||
13 | { .procname = "netfilter", .ctl_name = NET_NETFILTER, }, | ||
14 | { } | ||
15 | }; | ||
16 | EXPORT_SYMBOL_GPL(nf_net_netfilter_sysctl_path); | ||
17 | |||
18 | /* net/ipv4/netfilter */ | ||
19 | struct 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 | }; | ||
25 | EXPORT_SYMBOL_GPL(nf_net_ipv4_netfilter_sysctl_path); | ||