aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/netfilter/nf_conntrack_l3proto.h2
-rw-r--r--include/net/netfilter/nf_conntrack_l4proto.h10
-rw-r--r--net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c1
-rw-r--r--net/ipv4/netfilter/nf_conntrack_proto_icmp.c8
-rw-r--r--net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c5
-rw-r--r--net/netfilter/nf_conntrack_proto_generic.c8
-rw-r--r--net/netfilter/nf_conntrack_proto_sctp.c15
-rw-r--r--net/netfilter/nf_conntrack_proto_tcp.c15
-rw-r--r--net/netfilter/nf_conntrack_proto_udp.c15
-rw-r--r--net/netfilter/nf_conntrack_proto_udplite.c12
10 files changed, 0 insertions, 91 deletions
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h
index d6df8c71a7fe..6f7c13f4ac03 100644
--- a/include/net/netfilter/nf_conntrack_l3proto.h
+++ b/include/net/netfilter/nf_conntrack_l3proto.h
@@ -64,9 +64,7 @@ struct nf_conntrack_l3proto {
64 size_t nla_size; 64 size_t nla_size;
65 65
66#ifdef CONFIG_SYSCTL 66#ifdef CONFIG_SYSCTL
67 struct ctl_table_header *ctl_table_header;
68 const char *ctl_table_path; 67 const char *ctl_table_path;
69 struct ctl_table *ctl_table;
70#endif /* CONFIG_SYSCTL */ 68#endif /* CONFIG_SYSCTL */
71 69
72 /* Init l3proto pernet data */ 70 /* Init l3proto pernet data */
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h
index d621c91de5c8..cfa2f89b031d 100644
--- a/include/net/netfilter/nf_conntrack_l4proto.h
+++ b/include/net/netfilter/nf_conntrack_l4proto.h
@@ -94,16 +94,6 @@ struct nf_conntrack_l4proto {
94 const struct nla_policy *nla_policy; 94 const struct nla_policy *nla_policy;
95 } ctnl_timeout; 95 } ctnl_timeout;
96#endif 96#endif
97
98#ifdef CONFIG_SYSCTL
99 struct ctl_table_header **ctl_table_header;
100 struct ctl_table *ctl_table;
101 unsigned int *ctl_table_users;
102#ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
103 struct ctl_table_header *ctl_compat_table_header;
104 struct ctl_table *ctl_compat_table;
105#endif
106#endif
107 int *net_id; 97 int *net_id;
108 /* Init l4proto pernet data */ 98 /* Init l4proto pernet data */
109 int (*init_net)(struct net *net); 99 int (*init_net)(struct net *net);
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
index 5c66203af51c..d79b961a8009 100644
--- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
+++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
@@ -380,7 +380,6 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4 __read_mostly = {
380#endif 380#endif
381#if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT) 381#if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
382 .ctl_table_path = "net/ipv4/netfilter", 382 .ctl_table_path = "net/ipv4/netfilter",
383 .ctl_table = ip_ct_sysctl_table,
384#endif 383#endif
385 .init_net = ipv4_init_net, 384 .init_net = ipv4_init_net,
386 .me = THIS_MODULE, 385 .me = THIS_MODULE,
diff --git a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c b/net/ipv4/netfilter/nf_conntrack_proto_icmp.c
index a0eabeb36b9f..2bca7a5e422b 100644
--- a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c
+++ b/net/ipv4/netfilter/nf_conntrack_proto_icmp.c
@@ -313,7 +313,6 @@ icmp_timeout_nla_policy[CTA_TIMEOUT_ICMP_MAX+1] = {
313#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 313#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
314 314
315#ifdef CONFIG_SYSCTL 315#ifdef CONFIG_SYSCTL
316static struct ctl_table_header *icmp_sysctl_header;
317static struct ctl_table icmp_sysctl_table[] = { 316static struct ctl_table icmp_sysctl_table[] = {
318 { 317 {
319 .procname = "nf_conntrack_icmp_timeout", 318 .procname = "nf_conntrack_icmp_timeout",
@@ -393,12 +392,5 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp __read_mostly =
393 .nla_policy = icmp_timeout_nla_policy, 392 .nla_policy = icmp_timeout_nla_policy,
394 }, 393 },
395#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 394#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
396#ifdef CONFIG_SYSCTL
397 .ctl_table_header = &icmp_sysctl_header,
398 .ctl_table = icmp_sysctl_table,
399#ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
400 .ctl_compat_table = icmp_compat_sysctl_table,
401#endif
402#endif
403 .init_net = icmp_init_net, 395 .init_net = icmp_init_net,
404}; 396};
diff --git a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
index f606355200d8..1b7818f15f3d 100644
--- a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
+++ b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
@@ -320,7 +320,6 @@ icmpv6_timeout_nla_policy[CTA_TIMEOUT_ICMPV6_MAX+1] = {
320#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 320#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
321 321
322#ifdef CONFIG_SYSCTL 322#ifdef CONFIG_SYSCTL
323static struct ctl_table_header *icmpv6_sysctl_header;
324static struct ctl_table icmpv6_sysctl_table[] = { 323static struct ctl_table icmpv6_sysctl_table[] = {
325 { 324 {
326 .procname = "nf_conntrack_icmpv6_timeout", 325 .procname = "nf_conntrack_icmpv6_timeout",
@@ -375,9 +374,5 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmpv6 __read_mostly =
375 .nla_policy = icmpv6_timeout_nla_policy, 374 .nla_policy = icmpv6_timeout_nla_policy,
376 }, 375 },
377#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 376#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
378#ifdef CONFIG_SYSCTL
379 .ctl_table_header = &icmpv6_sysctl_header,
380 .ctl_table = icmpv6_sysctl_table,
381#endif
382 .init_net = icmpv6_init_net, 377 .init_net = icmpv6_init_net,
383}; 378};
diff --git a/net/netfilter/nf_conntrack_proto_generic.c b/net/netfilter/nf_conntrack_proto_generic.c
index 19bc880eb4e2..e4e2d2a38d3f 100644
--- a/net/netfilter/nf_conntrack_proto_generic.c
+++ b/net/netfilter/nf_conntrack_proto_generic.c
@@ -111,7 +111,6 @@ generic_timeout_nla_policy[CTA_TIMEOUT_GENERIC_MAX+1] = {
111#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 111#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
112 112
113#ifdef CONFIG_SYSCTL 113#ifdef CONFIG_SYSCTL
114static struct ctl_table_header *generic_sysctl_header;
115static struct ctl_table generic_sysctl_table[] = { 114static struct ctl_table generic_sysctl_table[] = {
116 { 115 {
117 .procname = "nf_conntrack_generic_timeout", 116 .procname = "nf_conntrack_generic_timeout",
@@ -182,12 +181,5 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_generic __read_mostly =
182 .nla_policy = generic_timeout_nla_policy, 181 .nla_policy = generic_timeout_nla_policy,
183 }, 182 },
184#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 183#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
185#ifdef CONFIG_SYSCTL
186 .ctl_table_header = &generic_sysctl_header,
187 .ctl_table = generic_sysctl_table,
188#ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
189 .ctl_compat_table = generic_compat_sysctl_table,
190#endif
191#endif
192 .init_net = generic_init_net, 184 .init_net = generic_init_net,
193}; 185};
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c
index 9e5738db34df..d785f2c4182b 100644
--- a/net/netfilter/nf_conntrack_proto_sctp.c
+++ b/net/netfilter/nf_conntrack_proto_sctp.c
@@ -610,8 +610,6 @@ sctp_timeout_nla_policy[CTA_TIMEOUT_SCTP_MAX+1] = {
610 610
611 611
612#ifdef CONFIG_SYSCTL 612#ifdef CONFIG_SYSCTL
613static unsigned int sctp_sysctl_table_users;
614static struct ctl_table_header *sctp_sysctl_header;
615static struct ctl_table sctp_sysctl_table[] = { 613static struct ctl_table sctp_sysctl_table[] = {
616 { 614 {
617 .procname = "nf_conntrack_sctp_timeout_closed", 615 .procname = "nf_conntrack_sctp_timeout_closed",
@@ -832,14 +830,6 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp4 __read_mostly = {
832 .nla_policy = sctp_timeout_nla_policy, 830 .nla_policy = sctp_timeout_nla_policy,
833 }, 831 },
834#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 832#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
835#ifdef CONFIG_SYSCTL
836 .ctl_table_users = &sctp_sysctl_table_users,
837 .ctl_table_header = &sctp_sysctl_header,
838 .ctl_table = sctp_sysctl_table,
839#ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
840 .ctl_compat_table = sctp_compat_sysctl_table,
841#endif
842#endif
843 .net_id = &sctp_net_id, 833 .net_id = &sctp_net_id,
844 .init_net = sctpv4_init_net, 834 .init_net = sctpv4_init_net,
845}; 835};
@@ -874,11 +864,6 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp6 __read_mostly = {
874 }, 864 },
875#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 865#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
876#endif 866#endif
877#ifdef CONFIG_SYSCTL
878 .ctl_table_users = &sctp_sysctl_table_users,
879 .ctl_table_header = &sctp_sysctl_header,
880 .ctl_table = sctp_sysctl_table,
881#endif
882 .net_id = &sctp_net_id, 867 .net_id = &sctp_net_id,
883 .init_net = sctpv6_init_net, 868 .init_net = sctpv6_init_net,
884}; 869};
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c
index a053f6786b3c..e57f2a888dae 100644
--- a/net/netfilter/nf_conntrack_proto_tcp.c
+++ b/net/netfilter/nf_conntrack_proto_tcp.c
@@ -1364,8 +1364,6 @@ static const struct nla_policy tcp_timeout_nla_policy[CTA_TIMEOUT_TCP_MAX+1] = {
1364#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 1364#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
1365 1365
1366#ifdef CONFIG_SYSCTL 1366#ifdef CONFIG_SYSCTL
1367static unsigned int tcp_sysctl_table_users;
1368static struct ctl_table_header *tcp_sysctl_header;
1369static struct ctl_table tcp_sysctl_table[] = { 1367static struct ctl_table tcp_sysctl_table[] = {
1370 { 1368 {
1371 .procname = "nf_conntrack_tcp_timeout_syn_sent", 1369 .procname = "nf_conntrack_tcp_timeout_syn_sent",
@@ -1684,14 +1682,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp4 __read_mostly =
1684 .nla_policy = tcp_timeout_nla_policy, 1682 .nla_policy = tcp_timeout_nla_policy,
1685 }, 1683 },
1686#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 1684#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
1687#ifdef CONFIG_SYSCTL
1688 .ctl_table_users = &tcp_sysctl_table_users,
1689 .ctl_table_header = &tcp_sysctl_header,
1690 .ctl_table = tcp_sysctl_table,
1691#ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
1692 .ctl_compat_table = tcp_compat_sysctl_table,
1693#endif
1694#endif
1695 .init_net = tcpv4_init_net, 1685 .init_net = tcpv4_init_net,
1696}; 1686};
1697EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_tcp4); 1687EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_tcp4);
@@ -1728,11 +1718,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6 __read_mostly =
1728 .nla_policy = tcp_timeout_nla_policy, 1718 .nla_policy = tcp_timeout_nla_policy,
1729 }, 1719 },
1730#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 1720#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
1731#ifdef CONFIG_SYSCTL
1732 .ctl_table_users = &tcp_sysctl_table_users,
1733 .ctl_table_header = &tcp_sysctl_header,
1734 .ctl_table = tcp_sysctl_table,
1735#endif
1736 .init_net = tcpv6_init_net, 1721 .init_net = tcpv6_init_net,
1737}; 1722};
1738EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_tcp6); 1723EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_tcp6);
diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c
index f56c8905ddfb..db7abad44bc5 100644
--- a/net/netfilter/nf_conntrack_proto_udp.c
+++ b/net/netfilter/nf_conntrack_proto_udp.c
@@ -199,8 +199,6 @@ udp_timeout_nla_policy[CTA_TIMEOUT_UDP_MAX+1] = {
199#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 199#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
200 200
201#ifdef CONFIG_SYSCTL 201#ifdef CONFIG_SYSCTL
202static unsigned int udp_sysctl_table_users;
203static struct ctl_table_header *udp_sysctl_header;
204static struct ctl_table udp_sysctl_table[] = { 202static struct ctl_table udp_sysctl_table[] = {
205 { 203 {
206 .procname = "nf_conntrack_udp_timeout", 204 .procname = "nf_conntrack_udp_timeout",
@@ -343,14 +341,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4 __read_mostly =
343 .nla_policy = udp_timeout_nla_policy, 341 .nla_policy = udp_timeout_nla_policy,
344 }, 342 },
345#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 343#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
346#ifdef CONFIG_SYSCTL
347 .ctl_table_users = &udp_sysctl_table_users,
348 .ctl_table_header = &udp_sysctl_header,
349 .ctl_table = udp_sysctl_table,
350#ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
351 .ctl_compat_table = udp_compat_sysctl_table,
352#endif
353#endif
354 .init_net = udpv4_init_net, 344 .init_net = udpv4_init_net,
355}; 345};
356EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_udp4); 346EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_udp4);
@@ -382,11 +372,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6 __read_mostly =
382 .nla_policy = udp_timeout_nla_policy, 372 .nla_policy = udp_timeout_nla_policy,
383 }, 373 },
384#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 374#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
385#ifdef CONFIG_SYSCTL
386 .ctl_table_users = &udp_sysctl_table_users,
387 .ctl_table_header = &udp_sysctl_header,
388 .ctl_table = udp_sysctl_table,
389#endif
390 .init_net = udpv6_init_net, 375 .init_net = udpv6_init_net,
391}; 376};
392EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_udp6); 377EXPORT_SYMBOL_GPL(nf_conntrack_l4proto_udp6);
diff --git a/net/netfilter/nf_conntrack_proto_udplite.c b/net/netfilter/nf_conntrack_proto_udplite.c
index 7f85b0850a44..2e25e985e8cf 100644
--- a/net/netfilter/nf_conntrack_proto_udplite.c
+++ b/net/netfilter/nf_conntrack_proto_udplite.c
@@ -215,8 +215,6 @@ udplite_timeout_nla_policy[CTA_TIMEOUT_UDPLITE_MAX+1] = {
215#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 215#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
216 216
217#ifdef CONFIG_SYSCTL 217#ifdef CONFIG_SYSCTL
218static unsigned int udplite_sysctl_table_users;
219static struct ctl_table_header *udplite_sysctl_header;
220static struct ctl_table udplite_sysctl_table[] = { 218static struct ctl_table udplite_sysctl_table[] = {
221 { 219 {
222 .procname = "nf_conntrack_udplite_timeout", 220 .procname = "nf_conntrack_udplite_timeout",
@@ -287,11 +285,6 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_udplite4 __read_mostly =
287 .nla_policy = udplite_timeout_nla_policy, 285 .nla_policy = udplite_timeout_nla_policy,
288 }, 286 },
289#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 287#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
290#ifdef CONFIG_SYSCTL
291 .ctl_table_users = &udplite_sysctl_table_users,
292 .ctl_table_header = &udplite_sysctl_header,
293 .ctl_table = udplite_sysctl_table,
294#endif
295 .net_id = &udplite_net_id, 288 .net_id = &udplite_net_id,
296 .init_net = udplite_init_net, 289 .init_net = udplite_init_net,
297}; 290};
@@ -324,11 +317,6 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_udplite6 __read_mostly =
324 .nla_policy = udplite_timeout_nla_policy, 317 .nla_policy = udplite_timeout_nla_policy,
325 }, 318 },
326#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ 319#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */
327#ifdef CONFIG_SYSCTL
328 .ctl_table_users = &udplite_sysctl_table_users,
329 .ctl_table_header = &udplite_sysctl_header,
330 .ctl_table = udplite_sysctl_table,
331#endif
332 .net_id = &udplite_net_id, 320 .net_id = &udplite_net_id,
333 .init_net = udplite_init_net, 321 .init_net = udplite_init_net,
334}; 322};