]> asedeno.scripts.mit.edu Git - linux.git/commit
netfilter: nat: add inet family nat support
authorFlorian Westphal <fw@strlen.de>
Wed, 27 Mar 2019 08:22:24 +0000 (09:22 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Apr 2019 21:01:39 +0000 (23:01 +0200)
commitd164385ec572cbe3335a635ac308760e126d4ec0
tree8af7f3596c5b5a7379a73e6050a0e27f89d5b452
parent01902f8c85bfde343a4c2b7428d18762442f3a25
netfilter: nat: add inet family nat support

We need minimal support from the nat core for this, as we do not
want to register additional base hooks.

When an inet hook is registered, interally register ipv4 and ipv6
hooks for them and unregister those when inet hooks are removed.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_nat.h
net/netfilter/nf_nat_core.c
net/netfilter/nf_nat_proto.c
net/netfilter/nft_chain_nat.c
net/netfilter/nft_nat.c