diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-09 03:34:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:11 -0500 |
commit | b3fd3ffe39d830e7c24ef63b7f28703b485da2e3 (patch) | |
tree | 2fb8fc3ac2ffb79b481e1e3762da593910ebbe8c /include/linux | |
parent | 3d7cc2ba628dcc6b55a2bafc7eaf35019fdcc201 (diff) |
[NETFILTER]: Use the ctl paths instead of hand-made analogue
The conntracks subsystem has a similar infrastructure
to maintain ctl_paths, but since we already have it
on the generic level, I think it's OK to switch to
using it.
So, basically, this patch just replaces the ctl_table-s
with ctl_path-s, nf_register_sysctl_table with
register_sysctl_paths() and removes no longer needed code.
After this the net/netfilter/nf_sysctl.c file contains
the paths only.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netfilter.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index d190d560de61..c41f6438095d 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
@@ -120,12 +120,8 @@ void nf_unregister_sockopt(struct nf_sockopt_ops *reg); | |||
120 | 120 | ||
121 | #ifdef CONFIG_SYSCTL | 121 | #ifdef CONFIG_SYSCTL |
122 | /* Sysctl registration */ | 122 | /* Sysctl registration */ |
123 | struct ctl_table_header *nf_register_sysctl_table(struct ctl_table *path, | 123 | extern struct ctl_path nf_net_netfilter_sysctl_path[]; |
124 | struct ctl_table *table); | 124 | extern struct ctl_path nf_net_ipv4_netfilter_sysctl_path[]; |
125 | void nf_unregister_sysctl_table(struct ctl_table_header *header, | ||
126 | struct ctl_table *table); | ||
127 | extern struct ctl_table nf_net_netfilter_sysctl_path[]; | ||
128 | extern struct ctl_table nf_net_ipv4_netfilter_sysctl_path[]; | ||
129 | #endif /* CONFIG_SYSCTL */ | 125 | #endif /* CONFIG_SYSCTL */ |
130 | 126 | ||
131 | extern struct list_head nf_hooks[NPROTO][NF_MAX_HOOKS]; | 127 | extern struct list_head nf_hooks[NPROTO][NF_MAX_HOOKS]; |