Re: [PATCH nft 3/3] rule: fix use of intervals in set declarations

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

 



On Fri, Jun 19, 2015 at 03:13:36PM +0200, Patrick McHardy wrote:
> >  static int do_add_setelems(struct netlink_ctx *ctx, const struct handle *h,
> > -			   const struct expr *expr)
> > +			   const struct location *loc, struct expr *expr)
> >  {
> > -	if (netlink_add_setelems(ctx, h, expr) < 0)
> > +	struct set *set;
> > +
> > +	if (netlink_get_set(ctx, h, loc) < 0)
> 
> I think we should get it from the internal list and not from the
> kernel.

There is no such internal list at this moment, we retrieve the list
only for do_command_list(). Are you suggesting to add the code to
retrieve it inconditionally initially?

> We can't add intervals to existing sets so far anyways, and this
> would allow it, but it wouldn't work.

Not sure what you mean with this.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in



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

  Powered by Linux