Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: xt_ipcomp: add "ip[6]t_ipcomp" module alias name

Otherwise, user cannot add related rules if xt_ipcomp.ko is not loaded:
# iptables -A OUTPUT -p 108 -m ipcomp --ipcompspi 1
iptables: No chain/target/match by that name.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Liping Zhang and committed by
Pablo Neira Ayuso
f434ed0a 6d19375b

+2
+2
net/netfilter/xt_ipcomp.c
··· 26 26 MODULE_LICENSE("GPL"); 27 27 MODULE_AUTHOR("Fan Du <fan.du@windriver.com>"); 28 28 MODULE_DESCRIPTION("Xtables: IPv4/6 IPsec-IPComp SPI match"); 29 + MODULE_ALIAS("ipt_ipcomp"); 30 + MODULE_ALIAS("ip6t_ipcomp"); 29 31 30 32 /* Returns 1 if the spi is matched by the range, 0 otherwise */ 31 33 static inline bool