Skip to content

introducing libnftables

Eric Leblond netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest18 patches 37 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18mnl: fix error handling in mnl_batch_talksrc/mnl.c+5 -23 replies
2/18erec: add function to free listinclude/erec.h src/erec.c+11 -01 reply
3/18libnftables: introduce libraryconfigure.ac include/Makefile.am include/nftables/Makefile.am +4 more+99 -350 replies
4/18libnftables: add context new and freeinclude/nftables.h include/nftables/nftables.h src/libnftables.c +1 more+38 -153 replies
5/18libnftables: add nft_run_command_from_bufferinclude/nftables/nftables.h src/libnftables.c src/main.c+36 -129 replies
6/18libnftables: add nft_run_command_from_filenameinclude/nftables/nftables.h src/libnftables.c src/main.c+30 -130 replies
7/18libnftables: put nft_run in libraryinclude/nftables.h include/nftables_common.h src/Makefile.am +4 more+126 -890 replies
8/18libnftables: add missing variables to librarysrc/libnftables.c src/main.c+2 -62 replies
9/18libnftables: add NFT_EXIT_* to libraryinclude/nftables.h include/nftables/nftables.h src/netlink.c +1 more+9 -70 replies
10/18libnftables: add a nft_cache to nft_ctxinclude/cli.h include/nftables.h include/nftables/nftables.h +3 more+32 -281 reply
11/18libnftables: move iface_cache_release to deinitsrc/libnftables.c src/main.c+1 -12 replies
12/18libnftables: get rid of printfinclude/datatype.h include/expression.h include/nftables.h +12 more+279 -2510 replies
13/18libnftables: add nft_context_set_printinclude/nftables/nftables.h src/libnftables.c+12 -04 replies
14/18libnftables: transaction supportinclude/netlink.h include/nftables/nftables.h src/libnftables.c+114 -00 replies
15/18libnftables: set max_errors to 1 in libraryinclude/nftables/nftables.h src/libnftables.c src/main.c+9 -16 replies
16/18libnftables: add error handlinginclude/nftables.h include/nftables/nftables.h src/libnftables.c+27 -100 replies
17/18libnftables: suppress unused global variablessrc/libnftables.c+0 -31 reply
18/18libnftables: doxygen documentationDoxyfile src/libnftables.c+2705 -10 replies

Reviews trailers per patch

1 of 18 patches has a Reviewed-by or Acked-by.

PatchEric Leblond
1/18Signee-off-by
2/18
3/18
4/18
5/18A-b
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH nft v2 00/18] introducing libnftables

Hello,

This patchset is the second version of libnftables introduction patchset. It addresses some remarks by Phil Sutter. Other remarks as said on the ML are in fact TODO points that can be adressed later.

This patchset also fixes issues with error handling and adds documentation in doxygen format. An output is available here if you wanna have a look:
http://home.regit.org/~regit/libnftables/html/group__libnftables.html

The first two patches are a bugfix and a helper function that is needed for the library:
* [PATH nft v2 01/18] mnl: fix error handling in mnl_batch_talk
* [PATH nft v2 02/18] erec: add function to free list

As mentioned by Arturo, this is not meant to be added into nftables v0.8 but it is a good candidate for early introduction in the branch as soon as the v0.8 release is done.

I did not managed to incorporate some suggestions done privately by Pablo. For instance there is an nf_sock in the struct nft_ctx. I did not change any existing internal so it is still possible to do it as incremental patches.

BR,
--
Eric