Re: [RFC nft] ct expr: make directional keys work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 18, 2015 at 06:17:07PM +0100, Florian Westphal wrote:
> Florian Westphal <fw@xxxxxxxxx> wrote:
> > Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
> > > I think this should fit into the grammar that I'm proposing above with
> > > no shift/reduce conflicts, ie.
> > > 
> > > ct packets VALUE
> > > ct direction original packets VALUE
> > > ct direction reply packets VALUE
> > 
> > I'll have to check.  I don't want to add any new keywords to the lexer
> > since that creates more problems for the grammar.
> 
> Drats, it doesn't work.
> conflicts: 1 shift/reduce

Right, the parser doesn't know if it has to reduce

ct direction original

as simple expression, or keep shifting for more tokens.

> 'ct direction' is already a valid expression, it loads
> CTINFO2DIR(ctinfo).
> 
> I'll send what I have in a second, but its not great either.

Wait for it.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux