mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-12-07 16:43:54 +01: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
|
#else
|
||||||
unsigned int hooknum = par->hooknum;
|
unsigned int hooknum = par->hooknum;
|
||||||
#endif
|
#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);
|
ct = nf_ct_get(skb, &ctinfo);
|
||||||
|
|
||||||
jttl = tginfo->flags & XT_DNETMAP_TTL ? tginfo->ttl * HZ : jtimeout;
|
jttl = tginfo->flags & XT_DNETMAP_TTL ? tginfo->ttl * HZ : jtimeout;
|
||||||
|
|||||||
Reference in New Issue
Block a user