aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-06 00:46:16 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-08 14:15:32 +0200
commita44f6d82a471aa52fe218e43105fbe3c458fc5a6 (patch)
treededa6d47f38c30718c08465665a1d5965c3455ba /net/ipv4
parentnetfilter: prefer nla_strlcpy for dealing with NLA_STRING attributes (diff)
downloadlinux-dev-a44f6d82a471aa52fe218e43105fbe3c458fc5a6.tar.xz
linux-dev-a44f6d82a471aa52fe218e43105fbe3c458fc5a6.zip
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 <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/ip_tables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index 44b308d93ec2..e85f35b89c49 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -34,6 +34,7 @@
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Netfilter Core Team <coreteam@netfilter.org>");
MODULE_DESCRIPTION("IPv4 packet filter");
+MODULE_ALIAS("ipt_icmp");
void *ipt_alloc_initial_table(const struct xt_table *info)
{