[Bug 888] Assertion errors attempting a statement which (I believe) is grammatically correct.

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Jun 5 21:20:16 CEST 2014


https://bugzilla.netfilter.org/show_bug.cgi?id=888

--- Comment #6 from Yuxuan Shui <yshuiv7 at gmail.com> 2014-06-05 21:20:15 CEST ---
Well I'll add a OP_LOOKUP_NEG, which linearize to "lookup_neg" when sending to
kernel. And reuse the nft_lookup_eval function, but reverse the logic. 

i.e. change

    if (set->ops->lookup(set, &data[priv->sreg], &data[priv->dreg]))
        return;
    data[NFT_REG_VERDICT].verdict = NFT_BREAK;

to

    if (set->ops->lookup(set, &data[priv->sreg], &data[priv->dreg]))
        data[NFT_REG_VERDICT].verdict = NFT_BREAK;

How does this sound?

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the netfilter-buglog mailing list