Re: [iptables PATCH v3 07/12] nft: Introduce NFT_CL_SETS cache level

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

 



On Thu, Oct 31, 2019 at 03:04:25PM +0100, Pablo Neira Ayuso wrote:
> On Wed, Oct 30, 2019 at 06:26:56PM +0100, Phil Sutter wrote:
> > +static int set_fetch_elem_cb(struct nftnl_set *s, void *data)
> > +{
> > +        char buf[MNL_SOCKET_BUFFER_SIZE];
> > +	struct nft_handle *h = data;
> > +        struct nlmsghdr *nlh;
> > +
> > +	if (set_has_elements(s))
> > +		return 0;
> > +
> > +	nlh = nftnl_nlmsg_build_hdr(buf, NFT_MSG_GETSETELEM, h->family,
> > +				    NLM_F_DUMP, h->seq);
> > +        nftnl_set_elems_nlmsg_build_payload(nlh, s);
> > +
> > +	return mnl_talk(h, nlh, set_elem_cb, s);
> > +}
> 
> Please, mind coding style, irregular indentation.

Oh, thanks for spotting that. Eight spaces are not noticeable in my
editor, maybe I should highlight those.

Thanks, Phil



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux