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)
commit1f55236bd8dde69d1860a30c50793fb28d8405ae
tree3c15223784b0b1e41f757edf64f48bd0673acac3
parentb9ccc07e3f31ad8073697982bac014fbceef7ecb
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