]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_nat: move common nat code to nat core
authorFlorian Westphal <fw@strlen.de>
Mon, 14 May 2018 21:46:53 +0000 (23:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 23 May 2018 07:14:05 +0000 (09:14 +0200)
commitbc0a5a166cc0d7ad636b41e93df06649c1825e4a
tree3c15223784b0b1e41f757edf64f48bd0673acac3
parentfa203e3b81c81b1ea8c124a5d430fb2aa60e07cc
netfilter: nf_nat: move common nat code to nat core

Copy-pasted, both l3 helpers almost use same code here.
Split out the common part into an 'inet' helper.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_nat_core.h
net/ipv4/netfilter/nf_nat_l3proto_ipv4.c
net/ipv6/netfilter/nf_nat_l3proto_ipv6.c
net/netfilter/nf_nat_core.c