netfilter: refactor NAT redirect IPv4 to use it from nf_tables
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Thu, 16 Oct 2014 10:23:29 +0000 (12:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Oct 2014 21:47:06 +0000 (22:47 +0100)
commit8b13eddfdf04cbfa561725cfc42d6868fe896f56
treea54fcd289d9acb1566a841f66045127227c84d25
parentb8901ac319768cdd3afa060787503e0c405f9607
netfilter: refactor NAT redirect IPv4 to use it from nf_tables

This patch refactors the IPv4 code so it can be usable both from xt and
nf_tables.

A similar patch follows-up to handle IPv6.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/ipv4/nf_nat_redirect.h [new file with mode: 0644]
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Makefile
net/ipv4/netfilter/nf_nat_redirect_ipv4.c [new file with mode: 0644]
net/netfilter/Kconfig
net/netfilter/xt_REDIRECT.c