* [nf PATCH] net: nf_tables: Support auto-loading for inet nat
@ 2019-07-17 19:38 Phil Sutter
2019-07-18 18:15 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Phil Sutter @ 2019-07-17 19:38 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Florian Westphal, netfilter-devel
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.
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
Changes since RFC:
- Go with hard-coding the value for now like in nf_flow_table_inet.c.
- Adjust subject and commit message a bit.
---
net/netfilter/nft_chain_nat.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/netfilter/nft_chain_nat.c b/net/netfilter/nft_chain_nat.c
index 2f89bde3c61cb..ff9ac8ae0031f 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
--
2.22.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [nf PATCH] net: nf_tables: Support auto-loading for inet nat
2019-07-17 19:38 [nf PATCH] net: nf_tables: Support auto-loading for inet nat Phil Sutter
@ 2019-07-18 18:15 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2019-07-18 18:15 UTC (permalink / raw)
To: Phil Sutter; +Cc: Florian Westphal, netfilter-devel
On Wed, Jul 17, 2019 at 09:38:19PM +0200, Phil Sutter wrote:
> 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.
Applied, thanks Phil.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-18 18:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17 19:38 [nf PATCH] net: nf_tables: Support auto-loading for inet nat Phil Sutter
2019-07-18 18:15 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).