Skip to content

Commit a9ce849

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: nf_tables: nat: merge nft_masq protocol specific modules
The family specific masq modules are way too small to warrant an extra module, just place all of them in nft_masq. before: text data bss dec hex filename 1001 832 0 1833 729 nft_masq.ko 766 896 0 1662 67e nft_masq_ipv4.ko 764 896 0 1660 67c nft_masq_ipv6.ko after: 2010 960 0 2970 b9a nft_masq.ko Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent c78efc9 commit a9ce849

File tree

9 files changed

+168
-236
lines changed

9 files changed

+168
-236
lines changed

include/net/netfilter/nft_masq.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

net/ipv4/netfilter/Kconfig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,6 @@ config NFT_CHAIN_NAT_IPV4
106106
packet transformations such as the source, destination address and
107107
source and destination ports.
108108

109-
config NFT_MASQ_IPV4
110-
tristate "IPv4 masquerading support for nf_tables"
111-
depends on NF_TABLES_IPV4
112-
depends on NFT_MASQ
113-
select NF_NAT_MASQUERADE
114-
help
115-
This is the expression that provides IPv4 masquerading support for
116-
nf_tables.
117-
118109
endif # NF_TABLES
119110

120111
config NF_NAT_SNMP_BASIC

net/ipv4/netfilter/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ obj-$(CONFIG_NFT_CHAIN_ROUTE_IPV4) += nft_chain_route_ipv4.o
2828
obj-$(CONFIG_NFT_CHAIN_NAT_IPV4) += nft_chain_nat_ipv4.o
2929
obj-$(CONFIG_NFT_REJECT_IPV4) += nft_reject_ipv4.o
3030
obj-$(CONFIG_NFT_FIB_IPV4) += nft_fib_ipv4.o
31-
obj-$(CONFIG_NFT_MASQ_IPV4) += nft_masq_ipv4.o
3231
obj-$(CONFIG_NFT_DUP_IPV4) += nft_dup_ipv4.o
3332

3433
# flow table support

net/ipv4/netfilter/nft_masq_ipv4.c

Lines changed: 0 additions & 90 deletions
This file was deleted.

net/ipv6/netfilter/Kconfig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ config NFT_CHAIN_NAT_IPV6
4040
chain type is used to perform Network Address Translation (NAT)
4141
packet transformations such as the source, destination address and
4242
source and destination ports.
43-
44-
config NFT_MASQ_IPV6
45-
tristate "IPv6 masquerade support for nf_tables"
46-
depends on NFT_MASQ
47-
select NF_NAT_MASQUERADE
48-
help
49-
This is the expression that provides IPv4 masquerading support for
50-
nf_tables.
51-
5243
endif # NF_NAT
5344

5445
config NFT_REJECT_IPV6

net/ipv6/netfilter/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ obj-$(CONFIG_NF_DUP_IPV6) += nf_dup_ipv6.o
3030
obj-$(CONFIG_NFT_CHAIN_ROUTE_IPV6) += nft_chain_route_ipv6.o
3131
obj-$(CONFIG_NFT_CHAIN_NAT_IPV6) += nft_chain_nat_ipv6.o
3232
obj-$(CONFIG_NFT_REJECT_IPV6) += nft_reject_ipv6.o
33-
obj-$(CONFIG_NFT_MASQ_IPV6) += nft_masq_ipv6.o
3433
obj-$(CONFIG_NFT_DUP_IPV6) += nft_dup_ipv6.o
3534
obj-$(CONFIG_NFT_FIB_IPV6) += nft_fib_ipv6.o
3635

net/ipv6/netfilter/nft_masq_ipv6.c

Lines changed: 0 additions & 91 deletions
This file was deleted.

net/netfilter/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ config NFT_LIMIT
532532
config NFT_MASQ
533533
depends on NF_CONNTRACK
534534
depends on NF_NAT
535+
select NF_NAT_MASQUERADE
535536
tristate "Netfilter nf_tables masquerade support"
536537
help
537538
This option adds the "masquerade" expression that you can use

0 commit comments

Comments
 (0)