Re: [nft PATCH 0/16] introduce libnftables

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

 



On Thu, Aug 17, 2017 at 10:32:42AM +0200, Arturo Borrero Gonzalez wrote:
> On 16 August 2017 at 22:42, Eric Leblond <eric@xxxxxxxxx> wrote:
> >
> > Hello,
> >
> > This patchset adds a basi high level libnftables to nftables code.
> > It is currently supporting running a command from a buffer or from
> > a file as well as batch support allowing to chain commands and commit
> > them at once.
> >
> > The API is mostly using existing structures such as nft_ctx that are
> > updated to contain enough information. It also adds a structure
> > dedicated to batch.
> >
> 
> Great work Eric, thanks!

+1! Thanks for pushing this forward.

I noticed a few compiler warnings:

| libnftables.c: In function 'nft_batch_commit':
| ../include/list.h:28:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
|   struct list_head name = LIST_HEAD_INIT(name)
|   ^
| libnftables.c:282:2: note: in expansion of macro 'LIST_HEAD'
|   LIST_HEAD(err_list);
|   ^~~~~~~~~

I don't quite understand why that happens, the code removed from
nft_netlink() looks identical. Maybe some compiler flags missing? Or is
it just me?

In addition, I see this one:

| parser_bison.y: In function 'nft_parse':
| parser_bison.y:122:3: warning: implicit declaration of function 'nft_set_debug' [-Wimplicit-function-declaration]
|    nft_set_debug(1, scanner);
|    ^~~~~~~~~~~~~
| parser_bison.c:64:25: warning: implicit declaration of function 'nft_lex' [-Wimplicit-function-declaration]
|  #define yylex           nft_lex
|                          ^
| parser_bison.c:4400:16: note: in expansion of macro 'yylex'
|        yychar = yylex (&yylval, &yylloc, scanner);
|                 ^~~~~

Not sure why that happens, though.

Cheers, Phil
--
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