Skip to content

Commit a44f6d8

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: x_tables: add module alias for icmp matches
The icmp matches are implemented in ip_tables and ip6_tables, respectively, so for normal iptables they are always available: those modules are loaded once iptables calls getsockopt() to fetch available module revisions. In iptables-over-nftables case probing occurs via nfnetlink, so these modules might not be loaded. Add aliases so modprobe can load these when icmp/icmp6 is requested. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 4e09fc8 commit a44f6d8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

net/ipv4/netfilter/ip_tables.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
MODULE_LICENSE("GPL");
3535
MODULE_AUTHOR("Netfilter Core Team <[email protected]>");
3636
MODULE_DESCRIPTION("IPv4 packet filter");
37+
MODULE_ALIAS("ipt_icmp");
3738

3839
void *ipt_alloc_initial_table(const struct xt_table *info)
3940
{

net/ipv6/netfilter/ip6_tables.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
MODULE_LICENSE("GPL");
3939
MODULE_AUTHOR("Netfilter Core Team <[email protected]>");
4040
MODULE_DESCRIPTION("IPv6 packet filter");
41+
MODULE_ALIAS("ip6t_icmp6");
4142

4243
void *ip6t_alloc_initial_table(const struct xt_table *info)
4344
{

0 commit comments

Comments
 (0)