Re: [PATCH nf-next 3/3] netfilter: nf_tables: add generation mask to set objects

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

 



On Tue, Aug 04, 2015 at 11:12:05AM +0200, Patrick McHardy wrote:
> On 04.08, Pablo Neira Ayuso wrote:
> > -#define NFT_SET_INACTIVE	(1 << 15)
> > +static inline bool
> > +nft_set_is_active(struct net *net, const struct nft_set *set)
> > +{
> > +	return (set->genmask & nft_genmask_cur(net)) == 0;
> > +}
> 
> Do we really want this set of basic functions for every object type? There will
> still be cases where we need to open code the checks anyway, f.i. iterators
> and callbacks.

We can have a macro thing instead at some point.
--
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