diff options
author | Florian Westphal <fw@strlen.de> | 2016-11-15 21:36:42 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-12-04 21:17:16 +0100 |
commit | 20afd423976ef3df0ce5719909ffd4416f9ef986 (patch) | |
tree | 840d7c3ef4faff8abf68cd3c895036d4eb0c4932 /net/netfilter/nft_masq.c | |
parent | a357b3f80bc8d785ac7bdb99eb10ad0ba51275c9 (diff) | |
download | op-kernel-dev-20afd423976ef3df0ce5719909ffd4416f9ef986.zip op-kernel-dev-20afd423976ef3df0ce5719909ffd4416f9ef986.tar.gz |
netfilter: nf_tables: add conntrack dependencies for nat/masq/redir expressions
so that conntrack core will add the needed hooks in this namespace.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_masq.c')
-rw-r--r-- | net/netfilter/nft_masq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_masq.c b/net/netfilter/nft_masq.c index bf92de0..11ce016 100644 --- a/net/netfilter/nft_masq.c +++ b/net/netfilter/nft_masq.c @@ -77,7 +77,7 @@ int nft_masq_init(const struct nft_ctx *ctx, } } - return 0; + return nf_ct_netns_get(ctx->net, ctx->afi->family); } EXPORT_SYMBOL_GPL(nft_masq_init); |