OSDN Git Service

netfilter: nft_ct: load both IPv4 and IPv6 conntrack modules for NFPROTO_INET
authorPatrick McHardy <kaber@trash.net>
Mon, 6 Jan 2014 18:09:49 +0000 (18:09 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 7 Jan 2014 22:57:32 +0000 (23:57 +0100)
commit9638f33ecf7e1b7eb844603c1137bc3468902c17
tree3d9372689c382af60fd1a2aa26dd3bb1f5140dd3
parent4566bf27069b7780e453cffb24ea5f5323059885
netfilter: nft_ct: load both IPv4 and IPv6 conntrack modules for NFPROTO_INET

The ct expression can currently not be used in the inet family since
we don't have a conntrack module for NFPROTO_INET, so
nf_ct_l3proto_try_module_get() fails. Add some manual handling to
load the modules for both NFPROTO_IPV4 and NFPROTO_IPV6 if the
ct expression is used in the inet family.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_ct.c