diff options
author | Phil Sutter <phil@nwl.cc> | 2019-07-17 21:38:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-16 10:11:00 +0200 |
commit | 6fdbbf4d31b746cc3528d2c9c0d92d9c72642f43 (patch) | |
tree | 238b5c9f95d71d209dc224c469a5eba71bbe4280 /net | |
parent | ae3afb0ab0b6650644f7d0487d01d62322e4ac58 (diff) | |
download | linux-stable-6fdbbf4d31b746cc3528d2c9c0d92d9c72642f43.tar.gz linux-stable-6fdbbf4d31b746cc3528d2c9c0d92d9c72642f43.tar.bz2 linux-stable-6fdbbf4d31b746cc3528d2c9c0d92d9c72642f43.zip |
netfilter: nf_tables: Support auto-loading for inet nat
[ Upstream commit b4f1483cbfa5fafca4874e90063f75603edbc210 ]
Trying to create an inet family nat chain would not cause
nft_chain_nat.ko module to auto-load due to missing module alias. Add a
proper one with hard-coded family value 1 for the pseudo-family
NFPROTO_INET.
Fixes: d164385ec572 ("netfilter: nat: add inet family nat support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nft_chain_nat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netfilter/nft_chain_nat.c b/net/netfilter/nft_chain_nat.c index 2f89bde3c61c..ff9ac8ae0031 100644 --- a/net/netfilter/nft_chain_nat.c +++ b/net/netfilter/nft_chain_nat.c @@ -142,3 +142,6 @@ MODULE_ALIAS_NFT_CHAIN(AF_INET, "nat"); #ifdef CONFIG_NF_TABLES_IPV6 MODULE_ALIAS_NFT_CHAIN(AF_INET6, "nat"); #endif +#ifdef CONFIG_NF_TABLES_INET +MODULE_ALIAS_NFT_CHAIN(1, "nat"); /* NFPROTO_INET */ +#endif |