]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nat: merge ipv4 and ipv6 masquerade functionality
authorFlorian Westphal <fw@strlen.de>
Tue, 19 Feb 2019 16:38:19 +0000 (17:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Feb 2019 09:49:24 +0000 (10:49 +0100)
commitd1aca8ab3104aa7131f5ab144c6f586b54df084b
tree6687b7c3de0a58cec3ebb1cc9ad274f3bd351b64
parentd824548dae220820bdf69b2d1561b7c4b072783f
netfilter: nat: merge ipv4 and ipv6 masquerade functionality

Before:
   text    data     bss     dec     hex filename
  13916    1412    4128   19456    4c00 nf_nat.ko
   4510     968       4    5482    156a nf_nat_ipv4.ko
   5146     944       8    6098    17d2 nf_nat_ipv6.ko

After:
   text    data     bss     dec     hex filename
  16566    1576    4136   22278    5706 nf_nat.ko
   3187     844       0    4031     fbf nf_nat_ipv4.ko
   3598     844       0    4442    115a nf_nat_ipv6.ko

... so no drastic changes in combined size.

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/Kconfig
net/ipv4/netfilter/Makefile
net/ipv6/netfilter/Kconfig
net/ipv6/netfilter/Makefile
net/ipv6/netfilter/nf_nat_masquerade_ipv6.c [deleted file]
net/netfilter/Kconfig
net/netfilter/Makefile
net/netfilter/nf_nat_masquerade.c [moved from net/ipv4/netfilter/nf_nat_masquerade_ipv4.c with 51% similarity]