nf_nat tree updated
Subsystems (2)
I've rebased my nf_nat tree on top of Dave's net-2.6.20 tree (actually on top of my non-nf_nat patches on top of net-2.6.20) and uploaded the latest version to my people.netfilter.org space.
The tree includes only my local changes, you need to pull it into a net-2.6.20 tree like this:
git-clone git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.20.git
cd net-2.6.20.git
git-pull http://people.netfilter.org/~kaber/nf-2.6.20-nat.git/
Changes this the last version include:
- porting of all remaining conntrack/NAT helpers
- resync with changes to IPv4 conntrack/NAT, mainly Al Viro's endian annotations
- multiple small fixes
Next I'm going to integrate Jozsef's patch for the helper assignment problem.
A few questions:
- this seems like a good chance to get rid of the helper naming inconsistencies (nf_conntrack_helper_* vs nf_conntrack_*). Should we rename all helpers to nf_conntrack_helper_XXX? We have to provide module aliases for the old names anyway ..
- /proc-compatibility: since the plan is to get rid of the old IPv4-only connection tracking ASAP, we need to think of something to keep old scripts fiddling with /proc-files working. So we probably need to do some symlinking (is that possible?) of the old net/ipv4/netfilter files or just keep the around as normal files. And we need a /proc/net/ip_conntrack that only shows IPv4 entries I suppose.
- anything else we need to do for a drop-in replacement?
From: Patrick McHardy <[email protected]>
Date: Thu, 23 Nov 2006 16:55:42 +0100
Quoted 36 lines
I've rebased my
nf_nattree on top of Dave's net-2.6.20 tree (actually on top of my non-nf_nat patches on top of net-2.6.20) and uploaded the latest version to my people.netfilter.org space.The tree includes only my local changes, you need to pull it into a net-2.6.20 tree like this:
git-clone
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.20.git
cd net-2.6.20.git
git-pull http://people.netfilter.org/~kaber/nf-2.6.20-nat.git/Changes this the last version include:
- porting of all remaining conntrack/NAT helpers
- resync with changes to IPv4 conntrack/NAT, mainly Al Viro's endian annotations
- multiple small fixesNext I'm going to integrate Jozsef's patch for the helper assignment problem.
A few questions:
- this seems like a good chance to get rid of the helper naming inconsistencies (nf_conntrack_helper_* vs nf_conntrack_*). Should we rename all helpers to
nf_conntrack_helper_XXX? We have to provide module aliases for the old names anyway ..- /proc-compatibility: since the plan is to get rid of the old IPv4-only connection tracking ASAP, we need to think of something to keep old scripts fiddling with /proc-files working. So we probably need to do some symlinking (is that possible?) of the old
net/ipv4/netfilterfiles or just keep the around as normal files. And we need a/proc/net/ip_conntrackthat only shows IPv4 entries I suppose.
Quoted 1 line
- anything else we need to do for a drop-in replacement?
Sorry for long silence, but please wait a minites.
I've found that helper asignment problem was because my check was poor to dc808fe28...
I'm writing a patch to fix them (to revert some change in that commits) for current linus tree.
At least, I think we should use nf_ct_helper_find_get() in nf_conntrack_netlink.c.
-- Yasuyuki Kozakai
cover fixes helper assingments (Was: Re: nf_nat tree updated)
Quoted 11 lines
Sorry for long silence, but please wait a minites.
I've found that helper asignment problem was because my check was poor to
dc808fe28...I'm writing a patch to fix them (to revert some change in that commits) for current linus tree.
At least, I think we should use
nf_ct_helper_find_get()innf_conntrack_netlink.c.
The commit(dc808fe28db59fadf4ec32d53f62477fa28f3be8)
- removed the codes to assign helper to newly created conntrack via nfctnetlink.
- re-use the pointer to found helper to assign it to conntrack out of lock.
These patches revert their changes for 2.6.19 tree.
-- Yasuyuki Kozakai
Hi Patrick,
Quoted 2 lines · Patrick McHardy
Next I'm going to integrate Jozsef's patch for the helper assignment problem.
There is a locking bug in the nat-core[2].patch I sent to the list:
@@ -659,7 +695,12 @@
return NULL;
}- conntrack = __nf_conntrack_alloc(tuple, &repl_tuple, l3proto); + read_lock_bh(&nf_conntrack_lock); + exp = find_expectation(tuple); + read_unlock_bh(&nf_conntrack_lock);
find_expectation finds *and* deletes the expectation from the list so write locking is required here.
Quoted 6 lines
A few questions:
- this seems like a good chance to get rid of the helper naming inconsistencies (nf_conntrack_helper_* vs nf_conntrack_*). Should we rename all helpers to
nf_conntrack_helper_XXX? We have to provide module aliases for the old names anyway ..
All helper modules are named as nf_conntrack_*. Only the file naming is inconsistent. Or do you propose to rename all nf_conntrack_foo helper module to nf_conntrack_helper_foo?
Quoted 6 lines
- /proc-compatibility: since the plan is to get rid of the old IPv4-only connection tracking ASAP, we need to think of something to keep old scripts fiddling with /proc-files working. So we probably need to do some symlinking (is that possible?) of the old
net/ipv4/netfilterfiles or just keep the around as normal files.
As I see symlinking is not possible, so we have to keep the old files.
Quoted 2 lines
And we need a
/proc/net/ip_conntrackthat only shows IPv4 entries I suppose.
Yes! Missing /proc/net/ip_conntrack could break a lot of scripts.
Quoted 1 line
- anything else we need to do for a drop-in replacement?
[I'll be travelling in the next couple of days and probably won't be able to follow the thread.]
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
Quoted 11 lines · Jozsef Kadlecsik
There is a locking bug in the nat-core[2].patch I sent to the list:
(quoted diff) +3
-1@@ -659,7 +695,12 @@ return NULL; } - conntrack = __nf_conntrack_alloc(tuple, &repl_tuple, l3proto); + read_lock_bh(&nf_conntrack_lock); + exp = find_expectation(tuple); + read_unlock_bh(&nf_conntrack_lock);
Quoted 2 lines
find_expectationfinds *and* deletes the expectation from the list so write locking is required here.
I'll fix it up, thanks.
Quoted 11 lines
Quoted 6 lines
A few questions:
- this seems like a good chance to get rid of the helper naming inconsistencies (nf_conntrack_helper_* vs nf_conntrack_*). Should we rename all helpers to
nf_conntrack_helper_XXX? We have to provide module aliases for the old names anyway ..All helper modules are named as nf_conntrack_*. Only the file naming is inconsistent. Or do you propose to rename all
nf_conntrack_foohelper module tonf_conntrack_helper_foo?
I mainly want to get rid of the inconsistent file naming, but unless we add lots of special rules to the Makefile, that will affect the module names as well.
Quoted 8 lines
Quoted 6 lines
- /proc-compatibility: since the plan is to get rid of the old IPv4-only connection tracking ASAP, we need to think of something to keep old scripts fiddling with /proc-files working. So we probably need to do some symlinking (is that possible?) of the old
net/ipv4/netfilterfiles or just keep the around as normal files.
Quoted 8 lines
As I see symlinking is not possible, so we have to keep the old files.
Quoted 2 lines
And we need a
/proc/net/ip_conntrackthat only shows IPv4 entries I suppose.Yes! Missing
/proc/net/ip_conntrackcould break a lot of scripts.
I'll take care of the proc files.
Quoted 13 lines · Patrick McHardy
Quoted 11 lines · Jozsef Kadlecsik
Quoted 6 lines
- /proc-compatibility: since the plan is to get rid of the old IPv4-only connection tracking ASAP, we need to think of something to keep old scripts fiddling with /proc-files working. So we probably need to do some symlinking (is that possible?) of the old
net/ipv4/netfilterfiles or just keep the around as normal files.As I see symlinking is not possible, so we have to keep the old files.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
And we need a
/proc/net/ip_conntrackthat only shows IPv4 entries I suppose.Yes! Missing
/proc/net/ip_conntrackcould break a lot of scripts.I'll take care of the proc files.
This is a first attempt - its quite ugly because of all the new exports it needs. But even worse - what should we do about proc entries added by modules, like the SCTP protocol module? Should we just put this in nf_conntrack_standalone or in case of SCTP in the module itself?
include/linux/netfilter/nf_conntrack_tcp.h +13 -0
@@ -52,6 +52,19 @@ struct ip_ct_tcpu_int16_t last_win;/* Last window advertisement seen in dir */ }; +extern unsigned int nf_ct_tcp_timeout_syn_sent; +extern unsigned int nf_ct_tcp_timeout_syn_recv; +extern unsigned int nf_ct_tcp_timeout_established; +extern unsigned int nf_ct_tcp_timeout_fin_wait; +extern unsigned int nf_ct_tcp_timeout_close_wait; +extern unsigned int nf_ct_tcp_timeout_last_ack; +extern unsigned int nf_ct_tcp_timeout_time_wait; +extern unsigned int nf_ct_tcp_timeout_close; +extern unsigned int nf_ct_tcp_timeout_max_retrans; +extern int nf_ct_tcp_loose; +extern int nf_ct_tcp_be_liberal; +extern int nf_ct_tcp_max_retrans; +#endif /* __KERNEL__ */ #endif /* _NF_CONNTRACK_TCP_H */
include/linux/netfilter/nf_conntrack_udp.h new file +7 -0
@@ -0,0 +1,7 @@ +#ifndef _NF_CONNTRACK_PROTO_UDP +#define _NF_CONNTRACK_PROTO_UDP + +extern unsigned int nf_ct_udp_timeout; +extern unsigned int nf_ct_udp_timeout_stream; + +#endif /* _NF_CONNTRACK_PROTO_UDP */
include/net/netfilter/ipv4/nf_conntrack_icmp.h +3 -0
@@ -8,4 +8,7 @@ struct ip_ct_icmp/* Optimization: when number in == number out, forget immediately. */ atomic_t count; }; + +extern unsigned long nf_ct_icmp_timeout; +#endif /* _NF_CONNTRACK_ICMP_H */
include/net/netfilter/ipv4/nf_conntrack_ipv4.h +3 -0
@@ -33,4 +33,7 @@ #endif /* CONFIG_NF_NAT_NEEDED */struct sk_buff *nf_ct_ipv4_ct_gather_frags (struct sk_buff *skb); +extern int nf_conntrack_compat_init (void ); +extern void nf_conntrack_compat_fini (void ); +#endif /*_NF_CONNTRACK_IPV4_H*/
include/net/netfilter/nf_conntrack.h +6 -0
@@ -20,6 +20,7 @@ #include <linux/compiler.h>#include <asm/atomic.h> #include <linux/netfilter/nf_conntrack_tcp.h> +#include <linux/netfilter/nf_conntrack_udp.h> #include <linux/netfilter/nf_conntrack_sctp.h> #include <linux/netfilter/nf_conntrack_proto_gre.h> #include <net/netfilter/ipv4/nf_conntrack_icmp.h>
@@ -247,7 +248,12 @@ static inline int nf_ct_is_dying(structextern unsigned int nf_conntrack_htable_size;extern int nf_conntrack_checksum; +extern atomic_t nf_conntrack_count; +extern int nf_conntrack_max; +extern unsigned int nf_ct_generic_timeout; + +DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat);#define NF_CT_STAT_INC (count) (__get_cpu_var(nf_conntrack_stat).count++)/* no helper, no nat */
net/ipv4/netfilter/Kconfig +11 -0
@@ -19,6 +19,17 @@ config NF_CONNTRACK_IPV4 To compile it as a module, choose M here. If unsure, say N. +config NF_CONNTRACK_IPV4_COMPAT + bool "/proc compatibility with IPv4-only connection tracking" + depends on NF_CONNTRACK && PROC_FS + default y + help + When this option is enabled, the connection tracking controls + under /proc/sys/net/netfilter will additionally be available + under their old names in /proc/sys/net/ipv4/netfilter. + + If unsure, say Y. + # connection tracking, helpers and protocols config IP_NF_CT_ACCT bool "Connection tracking flow accounting"
net/ipv4/netfilter/Makefile +3 -0
@@ -107,6 +107,9 @@ obj-$(CONFIG_IP_NF_QUEUE) += ip_queue.o # objects for l3 independent conntrack nf_conntrack_ipv4-objs := nf_conntrack_l3proto_ipv4.o nf_conntrack_proto_icmp.o +ifneq ($(CONFIG_NF_CONNTRACK_IPV4_COMPAT),) +nf_conntrack_ipv4-objs += nf_conntrack_l3proto_ipv4_compat.o +endif # l3 independent conntrack obj-$(CONFIG_NF_CONNTRACK_IPV4) += nf_conntrack_ipv4.o
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +14 -4
@@ -38,8 +38,6 @@ #else #define DEBUGP(format, args...)#endif -DECLARE_PER_CPU(struct nf_conntrack_stat, nf_conntrack_stat); -static int ipv4_pkt_to_tuple (const struct sk_buff *skb,unsigned int nhoff,struct nf_conntrack_tuple *tuple) {
@@ -269,8 +267,6 @@ static struct nf_hook_ops ipv4_conntrack };#ifdef CONFIG_SYSCTL -/* From nf_conntrack_proto_icmp.c */ -extern unsigned int nf_ct_icmp_timeout;static struct ctl_table_header *nf_ct_ipv4_sysctl_header; static ctl_table nf_ct_sysctl_table[] = {
@@ -487,8 +483,19 @@ #ifdef CONFIG_SYSCTL goto cleanup_hooks; }#endif +#ifdef CONFIG_NF_CONNTRACK_IPV4_COMPAT + ret =nf_conntrack_compat_init (); +if (ret <0 ) + goto cleanup_sysctl; +#endif return ret; +#ifdef CONFIG_NF_CONNTRACK_IPV4_COMPAT + cleanup_sysctl: +#ifdef CONFIG_SYSCTL +unregister_sysctl_table (nf_ct_ipv4_sysctl_header ); +#endif +#endif #ifdef CONFIG_SYSCTL cleanup_hooks:nf_unregister_hooks (ipv4_conntrack_ops,ARRAY_SIZE (ipv4_conntrack_ops));
@@ -509,6 +516,9 @@ #endif static void __exit nf_conntrack_l3proto_ipv4_fini(void) {synchronize_net (); +#ifdef CONFIG_NF_CONNTRACK_IPV4_COMPAT +nf_conntrack_compat_fini (); +#endif #ifdef CONFIG_SYSCTL unregister_sysctl_table (nf_ct_ipv4_sysctl_header);#endif
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c new file +654 -0
654 lines not on this page · raw message
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +0 -2
@@ -43,8 +43,6 @@ #else #define DEBUGP(format, args...)#endif -DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat); -static int ipv6_pkt_to_tuple (const struct sk_buff *skb,unsigned int nhoff,struct nf_conntrack_tuple *tuple) {
net/netfilter/nf_conntrack_core.c +2 -0
@@ -66,10 +66,12 @@ DEFINE_RWLOCK(nf_conntrack_lock);/* nf_conntrack_standalone needs this */ atomic_t nf_conntrack_count =ATOMIC_INIT (0 ); +EXPORT_SYMBOL_GPL (nf_conntrack_count);void (*nf_conntrack_destroyed)(struct nf_conn *conntrack) =NULL ;unsigned int nf_conntrack_htable_size__read_mostly ;int nf_conntrack_max__read_mostly ; +EXPORT_SYMBOL_GPL (nf_conntrack_max);struct list_head *nf_conntrack_hash__read_mostly ;struct nf_conn nf_conntrack_untracked__read_mostly ;unsigned int nf_ct_log_invalid__read_mostly ;
net/netfilter/nf_conntrack_expect.c +0 -1
@@ -28,7 +28,6 @@ #include <net/netfilter/nf_conntrack_tupLIST_HEAD (nf_conntrack_expect_list);kmem_cache_t *nf_conntrack_expect_cachep__read_mostly ; -DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat);static unsigned int nf_conntrack_expect_next_id;/* nf_conntrack_expect helper functions */
net/netfilter/nf_conntrack_l3proto_generic.c +1 -2
@@ -37,8 +37,6 @@ #else #define DEBUGP(format, args...)#endif -DECLARE_PER_CPU(struct nf_conntrack_stat, nf_conntrack_stat); -static int generic_pkt_to_tuple (const struct sk_buff *skb,unsigned int nhoff,struct nf_conntrack_tuple *tuple) {
@@ -94,3 +92,4 @@ struct nf_conntrack_l3proto nf_conntrack .prepare = generic_prepare, .get_features = generic_get_features, }; +EXPORT_SYMBOL_GPL (nf_conntrack_l3proto_generic);
net/netfilter/nf_conntrack_proto_generic.c +1 -0
@@ -18,6 +18,7 @@ #include <linux/netfilter.h>#include <net/netfilter/nf_conntrack_l4proto.h> unsigned int nf_ct_generic_timeout__read_mostly =600 *HZ ; +EXPORT_SYMBOL_GPL (nf_ct_generic_timeout); static int generic_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff,
net/netfilter/nf_conntrack_proto_tcp.c +12 -0
@@ -59,6 +59,7 @@ static DEFINE_RWLOCK(tcp_lock);be liberal in what you accept from others." If it's non-zero, we mark only out of window RST segments as INVALID. */ int nf_ct_tcp_be_liberal__read_mostly =0 ; +EXPORT_SYMBOL_GPL (nf_ct_tcp_be_liberal);/* When connection is picked up from the middle, how many packets are required to pass in each direction when we assume we are in sync - if any side uses
@@ -66,11 +67,13 @@ int nf_ct_tcp_be_liberal __read_mostly =If it is set to zero, we disable picking up already established connections. */ int nf_ct_tcp_loose__read_mostly =3 ; +EXPORT_SYMBOL_GPL (nf_ct_tcp_loose);/* Max number of the retransmitted packets without receiving an (acceptable) ACK from the destination. If this number is reached, a shorter timer will be started. */ int nf_ct_tcp_max_retrans__read_mostly =3 ; +EXPORT_SYMBOL_GPL (nf_ct_tcp_max_retrans);/* FIXME: Examine ipfilter's timeouts and conntrack transitions more closely. They're more complex. --RR */
@@ -94,18 +97,27 @@ #define HOURS * 60 MINS#define DAYS * 24 HOURS unsigned int nf_ct_tcp_timeout_syn_sent __read_mostly = 2 MINS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_syn_sent); unsigned int nf_ct_tcp_timeout_syn_recv __read_mostly = 60 SECS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_syn_recv); unsigned int nf_ct_tcp_timeout_established __read_mostly = 5 DAYS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_established); unsigned int nf_ct_tcp_timeout_fin_wait __read_mostly = 2 MINS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_fin_wait); unsigned int nf_ct_tcp_timeout_close_wait __read_mostly = 60 SECS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_close_wait); unsigned int nf_ct_tcp_timeout_last_ack __read_mostly = 30 SECS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_last_ack); unsigned int nf_ct_tcp_timeout_time_wait __read_mostly = 2 MINS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_time_wait); unsigned int nf_ct_tcp_timeout_close __read_mostly = 10 SECS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_close);/* RFC1122 says the R2 limit should be at least 100 seconds. Linux uses 15 packets as limit, which corresponds to ~13-30min depending on RTO. */ unsigned int nf_ct_tcp_timeout_max_retrans __read_mostly = 5 MINS; +EXPORT_SYMBOL_GPL (nf_ct_tcp_timeout_max_retrans);static unsigned int * tcp_timeouts[] = {NULL ,/* TCP_CONNTRACK_NONE */
net/netfilter/nf_conntrack_proto_udp.c +2 -0
@@ -30,7 +30,9 @@ #include <net/netfilter/nf_conntrack_l4p#include <net/netfilter/nf_conntrack_ecache.h> unsigned int nf_ct_udp_timeout__read_mostly =30 *HZ ; +EXPORT_SYMBOL_GPL (nf_ct_udp_timeout);unsigned int nf_ct_udp_timeout_stream__read_mostly =180 *HZ ; +EXPORT_SYMBOL_GPL (nf_ct_udp_timeout_stream); static int udp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff,
net/netfilter/nf_conntrack_standalone.c +1 -28
@@ -44,9 +44,6 @@ #endifMODULE_LICENSE ("GPL" ); -extern atomic_t nf_conntrack_count; -DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat); -#ifdef CONFIG_PROC_FS int print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
@@ -55,6 +52,7 @@ print_tuple(struct seq_file *s, const st {return l3proto->print_tuple (s, tuple) || l4proto->print_tuple (s, tuple); } +EXPORT_SYMBOL_GPL (print_tuple);#ifdef CONFIG_NF_CT_ACCT static unsigned int
@@ -334,31 +332,6 @@ int nf_conntrack_checksum __read_mostly#ifdef CONFIG_SYSCTL -/* From nf_conntrack_core.c */ -extern int nf_conntrack_max; -extern unsigned int nf_conntrack_htable_size; - -/* From nf_conntrack_proto_tcp.c */ -extern unsigned int nf_ct_tcp_timeout_syn_sent; -extern unsigned int nf_ct_tcp_timeout_syn_recv; -extern unsigned int nf_ct_tcp_timeout_established; -extern unsigned int nf_ct_tcp_timeout_fin_wait; -extern unsigned int nf_ct_tcp_timeout_close_wait; -extern unsigned int nf_ct_tcp_timeout_last_ack; -extern unsigned int nf_ct_tcp_timeout_time_wait; -extern unsigned int nf_ct_tcp_timeout_close; -extern unsigned int nf_ct_tcp_timeout_max_retrans; -extern int nf_ct_tcp_loose; -extern int nf_ct_tcp_be_liberal; -extern int nf_ct_tcp_max_retrans; - -/* From nf_conntrack_proto_udp.c */ -extern unsigned int nf_ct_udp_timeout; -extern unsigned int nf_ct_udp_timeout_stream; - -/* From nf_conntrack_proto_generic.c */ -extern unsigned int nf_ct_generic_timeout; -/* Log invalid packets of a given protocol */ static int log_invalid_proto_min =0 ;static int log_invalid_proto_max =255 ;
From: Patrick McHardy <[email protected]>
Date: Fri, 24 Nov 2006 09:16:09 +0100
Quoted 21 lines
Quoted 20 lines · Patrick McHardy
Quoted 16 lines · Jozsef Kadlecsik
Quoted 6 lines
- /proc-compatibility: since the plan is to get rid of the old IPv4-only connection tracking ASAP, we need to think of something to keep old scripts fiddling with /proc-files working. So we probably need to do some symlinking (is that possible?) of the old
net/ipv4/netfilterfiles or just keep the around as normal files.As I see symlinking is not possible, so we have to keep the old files.
Quoted 2 lines
And we need a
/proc/net/ip_conntrackthat only shows IPv4 entries I suppose.Yes! Missing
/proc/net/ip_conntrackcould break a lot of scripts.
Quoted 7 lines
Quoted 1 line
I'll take care of the proc files.
This is a first attempt - its quite ugly because of all the new exports it needs. But even worse - what should we do about proc entries added by modules, like the SCTP protocol module? Should we just put this in
nf_conntrack_standaloneor in case of SCTP in the module itself?
I like later one from the point of view of modularity. BTW, in the first place, why sysctl entries for tcp/udp/icmp are registered by nf_conntrack_standalone, not each module ?
-- Yasuyuki Kozakai
Quoted 10 lines · Yasuyuki KOZAKAI
From: Patrick McHardy <[email protected]>
Date: Fri, 24 Nov 2006 09:16:09 +0100Quoted 5 lines
This is a first attempt - its quite ugly because of all the new exports it needs. But even worse - what should we do about proc entries added by modules, like the SCTP protocol module? Should we just put this in
nf_conntrack_standaloneor in case of SCTP in the module itself?
Quoted 3 lines
I like later one from the point of view of modularity. BTW, in the first place, why sysctl entries for tcp/udp/icmp are registered by
nf_conntrack_standalone, not each module ?
Good question - I guess its a relict from ip_chains compatibility times, like the entire _core/_standalone split.
I'll take another stab at this :)