mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 13:15:12 +02:00
DNETMAP: remove NF_CT_ASSERT use
The hooks are already checked by the xtables core (due to struct xt_target::hooks).
This commit is contained in:
@@ -376,10 +376,6 @@ dnetmap_tg(struct sk_buff *skb, const struct xt_action_param *par)
|
||||
#else
|
||||
unsigned int hooknum = par->hooknum;
|
||||
#endif
|
||||
|
||||
NF_CT_ASSERT(hooknum == NF_INET_POST_ROUTING ||
|
||||
hooknum == NF_INET_LOCAL_OUT ||
|
||||
hooknum == NF_INET_PRE_ROUTING);
|
||||
ct = nf_ct_get(skb, &ctinfo);
|
||||
|
||||
jttl = tginfo->flags & XT_DNETMAP_TTL ? tginfo->ttl * HZ : jtimeout;
|
||||
|
Reference in New Issue
Block a user