History log of /net/ipv4/netfilter/nf_nat_masquerade_ipv4.c
Revision Date Author Comments
8dd33cc93ec92b8460ed2ad98c6db39276f6a72b 04-Sep-2014 Arturo Borrero <arturo.borrero.glez@gmail.com> netfilter: nf_nat: generalize IPv4 masquerading support for nf_tables

Let's refactor the code so we can reach the masquerade functionality
from outside the xt context (ie. nftables).

The patch includes the addition of an atomic counter to the masquerade
notifier: the stuff to be done by the notifier is the same for xt and
nftables. Therefore, only one notification handler is needed.

This factorization only involves IPv4; a similar patch follows to
handle IPv6.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>