]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: nf_conntrack: support for layer 3 protocol load on demand
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Mar 2006 21:56:08 +0000 (13:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2006 21:56:08 +0000 (13:56 -0800)
commitb9f78f9fca626875af8adc0f7366a38b8e625a0e
tree1087c6f6a6cc39e4e55c2a02f93d93da67a68ed3
parenta45049c51ce6a3fecf2a909b591b28164c927112
[NETFILTER]: nf_conntrack: support for layer 3 protocol load on demand

x_tables matches and targets that require nf_conntrack_ipv[4|6] to work
don't have enough information to load on demand these modules. This
patch introduces the following changes to solve this issue:

o nf_ct_l3proto_try_module_get: try to load the layer 3 connection
tracker module and increases the refcount.
o nf_ct_l3proto_module put: drop the refcount of the module.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netfilter/nf_conntrack.h
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_standalone.c
net/netfilter/xt_connmark.c
net/netfilter/xt_conntrack.c
net/netfilter/xt_helper.c
net/netfilter/xt_state.c