netfilter: cttimeout: fix dependency with l4protocol conntrack module
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 Mar 2012 22:40:01 +0000 (23:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 Mar 2012 23:52:01 +0000 (00:52 +0100)
commitc1ebd7dff700277e4d0a3da36833a406142e31d4
treefbcfed48280d81744fe77efebb91900c7db1c776
parenta0f65a267dd62aef4e003f833ea6290fd1e07b34
netfilter: cttimeout: fix dependency with l4protocol conntrack module

This patch introduces nf_conntrack_l4proto_find_get() and
nf_conntrack_l4proto_put() to fix module dependencies between
timeout objects and l4-protocol conntrack modules.

Thus, we make sure that the module cannot be removed if it is
used by any of the cttimeout objects.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_l4proto.h
include/net/netfilter/nf_conntrack_timeout.h
net/netfilter/nf_conntrack_proto.c
net/netfilter/nfnetlink_cttimeout.c
net/netfilter/xt_CT.c