]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_nat: add nat hook register functions to nf_nat
authorFlorian Westphal <fw@strlen.de>
Mon, 14 May 2018 21:46:57 +0000 (23:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 23 May 2018 07:14:05 +0000 (09:14 +0200)
commitf15c1c14ff8395ac1ec1d9aba03f91fceec44419
tree5ed963b70fd9c6038d62e0704ac9c0aeb349c358
parentb26674885fd24b4f0af36cb36cfcd95a7ed3a07f
netfilter: nf_nat: add nat hook register functions to nf_nat

This adds the infrastructure to register nat hooks with the nat core
instead of the netfilter core.

nat hooks are used to configure nat bindings.  Such hooks are registered
from ip(6)table_nat or by the nftables core when a nat chain is added.

After next patch, nat hooks will be registered with nf_nat instead of
netfilter core.  This allows to use many nat lookup functions at the
same time while doing the real packet rewrite (nat transformation) in
one place.

This change doesn't convert the intended users yet to ease review.

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