]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - net/netfilter/nf_sysctl.c
[NETFILTER]: Use the ctl paths instead of hand-made analogue
[linux-2.6-omap-h63xx.git] / net / netfilter / nf_sysctl.c
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);