netfilter: add helper for adding nat extension
authorFlorian Westphal <fw@strlen.de>
Mon, 28 Apr 2014 19:09:50 +0000 (21:09 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 29 Apr 2014 18:56:22 +0000 (20:56 +0200)
commitf768e5bdefe1ec9adbf7a116dfb156b73cacb582
tree1d49bc5b3184cc71d34090a4b056e3b9a9427fb9
parent683399eddb9fff742b1a14c5a5d03e12bfc0afff
netfilter: add helper for adding nat extension

Reduce copy-past a bit by adding a common helper.

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