mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 13:15:12 +02:00
build: support for Linux 4.10
Commit 613dbd95723aee7abd16860745691b6c7bda20dc (netfilter: x_tables: move hook state into xt_action_param structure) changes the struct xt_action_param, accommodate for it. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:

committed by
Jan Engelhardt

parent
db234c30cd
commit
a8af97b8fa
@@ -455,7 +455,11 @@ tarpit_tg4(struct sk_buff *skb, const struct xt_action_param *par)
|
||||
if (iph->frag_off & htons(IP_OFFSET))
|
||||
return NF_DROP;
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
|
||||
tarpit_tcp4(par_net(par), skb, par->state->hook, info->variant);
|
||||
#else
|
||||
tarpit_tcp4(par_net(par), skb, par->hooknum, info->variant);
|
||||
#endif
|
||||
return NF_DROP;
|
||||
}
|
||||
|
||||
@@ -497,7 +501,11 @@ tarpit_tg6(struct sk_buff *skb, const struct xt_action_param *par)
|
||||
return NF_DROP;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
|
||||
tarpit_tcp6(par_net(par), skb, par->state->hook, info->variant);
|
||||
#else
|
||||
tarpit_tcp6(par_net(par), skb, par->hooknum, info->variant);
|
||||
#endif
|
||||
return NF_DROP;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user