[Devel] [PATCH 02/14] netfilter: Add {ipt, ip6t}_osf aliases for xt_osf
Kirill Tkhai
ktkhai at odin.com
Mon Jun 8 07:20:20 PDT 2015
Porting mainstream commit b8ddd9eac8788b0aa9a9d4e09d76dc9e1667bb2c:
Orig author: Kirill Tkhai <ktkhai at parallels.com>
netfilter: Add {ipt,ip6t}_osf aliases for xt_osf
There are no these aliases, so kernel can not request appropriate
match table:
$ iptables -I INPUT -p tcp -m osf --genre Windows --ttl 2 -j DROP
iptables: No chain/target/match by that name.
setsockopt() requests ipt_osf module, which is not present. Add
the aliases.
Signed-off-by: Kirill Tkhai <ktkhai at parallels.com>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
Signed-off-by: Kirill Tkhai <ktkhai at odin.com>
---
net/netfilter/xt_osf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c
index 647d989..3b6522b 100644
--- a/net/netfilter/xt_osf.c
+++ b/net/netfilter/xt_osf.c
@@ -422,5 +422,7 @@ module_exit(xt_osf_fini);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Evgeniy Polyakov <zbr at ioremap.net>");
+MODULE_ALIAS("ipt_osf");
+MODULE_ALIAS("ip6t_osf");
MODULE_DESCRIPTION("Passive OS fingerprint matching.");
MODULE_ALIAS_NFNL_SUBSYS(NFNL_SUBSYS_OSF);
More information about the Devel
mailing list