]> www.infradead.org Git - users/dwmw2/linux.git/commit
netfilter: nf_tables: Support auto-loading for inet nat
authorPhil Sutter <phil@nwl.cc>
Wed, 17 Jul 2019 19:38:19 +0000 (21:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:11:00 +0000 (10:11 +0200)
commit6fdbbf4d31b746cc3528d2c9c0d92d9c72642f43
tree238b5c9f95d71d209dc224c469a5eba71bbe4280
parentae3afb0ab0b6650644f7d0487d01d62322e4ac58
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>
net/netfilter/nft_chain_nat.c