Skip to contentSkip to conversation

netfilter: Add {ipt,ip6t}_osf aliases for xt_osf

PATCH Applied Kirill Tkhai 2 participants 2 messages Mar 26, 2014 – Mar 30, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/netfilter/xt_osf.c | 2 ++
 1 file changed, 2 insertions(+)
net/netfilter/xt_osf.c +2 -0
index 7174611..c529161 100644
@@ -422,4 +422,6 @@ module_exit(xt_osf_fini);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Evgeniy Polyakov <[email protected]>");
 MODULE_DESCRIPTION("Passive OS fingerprint matching.");
+MODULE_ALIAS("ipt_osf");
+MODULE_ALIAS("ip6t_osf");
 MODULE_ALIAS_NFNL_SUBSYS(NFNL_SUBSYS_OSF);
maintainer Applied
#1 lore raw
Quoted 8 lines · Kirill Tkhai

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.

Applied, thanks.