]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: x_tables: add module alias for icmp matches
authorFlorian Westphal <fw@strlen.de>
Sat, 5 May 2018 22:46:16 +0000 (00:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2018 12:15:32 +0000 (14:15 +0200)
commit63c3ce33ee623e1f7d1abf613553a65f1e995ea8
treededa6d47f38c30718c08465665a1d5965c3455ba
parent73bb2a0599259b680e6d0f33379682241ae29eb8
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>
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c