OSDN Git Service

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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 18 Jul 2019 18:19:02 +0000 (20:19 +0200)
commitb4f1483cbfa5fafca4874e90063f75603edbc210
tree0524654d3cf026f3e3e0b329a99a81c746e821ce
parent28b1d6ef53e3303b90ca8924bb78f31fa527cafb
netfilter: nf_tables: Support auto-loading for inet nat

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>
net/netfilter/nft_chain_nat.c