Skip to content

Commit

Permalink
netfilter: nf_tables: fix module autoload with inet family
Browse files Browse the repository at this point in the history
Use MODULE_ALIAS_NFT_EXPR() to make happy the inet family with nat.

Fixes: 63ce394 ("netfilter: nft_redir: add inet support")
Fixes: 071657d ("netfilter: nft_masq: add inet support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed May 31, 2019
1 parent 100f6d8 commit 5142967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions net/netfilter/nft_masq.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,5 +307,4 @@ module_exit(nft_masq_module_exit);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Arturo Borrero Gonzalez <arturo@debian.org>");
MODULE_ALIAS_NFT_AF_EXPR(AF_INET6, "masq");
MODULE_ALIAS_NFT_AF_EXPR(AF_INET, "masq");
MODULE_ALIAS_NFT_EXPR("masq");
3 changes: 1 addition & 2 deletions net/netfilter/nft_redir.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,4 @@ module_exit(nft_redir_module_exit);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Arturo Borrero Gonzalez <arturo@debian.org>");
MODULE_ALIAS_NFT_AF_EXPR(AF_INET, "redir");
MODULE_ALIAS_NFT_AF_EXPR(AF_INET6, "redir");
MODULE_ALIAS_NFT_EXPR("nat");

0 comments on commit 5142967

Please sign in to comment.