Re: [PATCH nft 4/5] src: expr: add expression etype

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

 



Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
> On Fri, Feb 08, 2019 at 05:02:22PM +0100, Florian Westphal wrote:
> > Temporary kludge to remove all the expr->ops->type == ... patterns.
> > Followup patch will remove expr->ops, and make expr_ops() lookup
> > the correct expr_ops struct instead to reduce struct expr size.

> >  	const struct datatype	*dtype;
> >  	enum byteorder		byteorder;
> > +	enum expr_types		etype:8;
> 
> Probably use just type:8; ?
> 
>         expr->etype
> 
> sounds a bit redundant, but not a deal breaker :-)

There is aslo dtype, I wanted to avoid confusion.



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

  Powered by Linux