diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-22 08:58:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:34 -0500 |
commit | 8d8354d2fb9277f165715a6e1cb92bcc89259975 (patch) | |
tree | 465fd866b6f5b4ab9c05a5441697c07502d0f0ed /include/net | |
parent | 9d5c824399dea881779d78a6c147288bf2dccb6b (diff) |
[NETNS][FRAGS]: Move ctl tables around.
This is a preparation for sysctl netns-ization.
Move the ctl tables to the files, where the tuning
variables reside. Plus make the helpers to register
the tables.
This will simplify the later patches and will keep
similar things closer to each other.
ipv4, ipv6 and conntrack_reasm are patched differently,
but the result is all the tables are in appropriate files.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip.h | 5 | ||||
-rw-r--r-- | include/net/ipv6.h | 1 | ||||
-rw-r--r-- | include/net/netfilter/ipv6/nf_conntrack_ipv6.h | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 6850a80a6886..9d43ac222d15 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -179,11 +179,6 @@ extern int sysctl_ip_nonlocal_bind; | |||
179 | 179 | ||
180 | extern struct ctl_path net_ipv4_ctl_path[]; | 180 | extern struct ctl_path net_ipv4_ctl_path[]; |
181 | 181 | ||
182 | /* From ip_fragment.c */ | ||
183 | struct inet_frags_ctl; | ||
184 | extern struct inet_frags_ctl ip4_frags_ctl; | ||
185 | extern int sysctl_ipfrag_max_dist; | ||
186 | |||
187 | /* From inetpeer.c */ | 182 | /* From inetpeer.c */ |
188 | extern int inet_peer_threshold; | 183 | extern int inet_peer_threshold; |
189 | extern int inet_peer_minttl; | 184 | extern int inet_peer_minttl; |
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 3712caeae74e..87ca1bf17d71 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -587,7 +587,6 @@ extern int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf, | |||
587 | 587 | ||
588 | #ifdef CONFIG_PROC_FS | 588 | #ifdef CONFIG_PROC_FS |
589 | extern struct ctl_table *ipv6_icmp_sysctl_init(struct net *net); | 589 | extern struct ctl_table *ipv6_icmp_sysctl_init(struct net *net); |
590 | extern void ipv6_frag_sysctl_init(struct net *net); | ||
591 | extern struct ctl_table *ipv6_route_sysctl_init(struct net *net); | 590 | extern struct ctl_table *ipv6_route_sysctl_init(struct net *net); |
592 | 591 | ||
593 | extern int ac6_proc_init(void); | 592 | extern int ac6_proc_init(void); |
diff --git a/include/net/netfilter/ipv6/nf_conntrack_ipv6.h b/include/net/netfilter/ipv6/nf_conntrack_ipv6.h index f703533fb4db..abc55ad75c2b 100644 --- a/include/net/netfilter/ipv6/nf_conntrack_ipv6.h +++ b/include/net/netfilter/ipv6/nf_conntrack_ipv6.h | |||
@@ -16,6 +16,8 @@ extern void nf_ct_frag6_output(unsigned int hooknum, struct sk_buff *skb, | |||
16 | int (*okfn)(struct sk_buff *)); | 16 | int (*okfn)(struct sk_buff *)); |
17 | 17 | ||
18 | struct inet_frags_ctl; | 18 | struct inet_frags_ctl; |
19 | extern struct inet_frags_ctl nf_frags_ctl; | 19 | |
20 | #include <linux/sysctl.h> | ||
21 | extern struct ctl_table nf_ct_ipv6_sysctl_table[]; | ||
20 | 22 | ||
21 | #endif /* _NF_CONNTRACK_IPV6_H*/ | 23 | #endif /* _NF_CONNTRACK_IPV6_H*/ |