Re: [nft PATH 12/16] libnftables: transaction support

2017-08-17 Thread Phil Sutter
On Wed, Aug 16, 2017 at 10:43:06PM +0200, Eric Leblond wrote: [...] > diff --git a/src/libnftables.c b/src/libnftables.c > index 494ff57..08050e5 100644 > --- a/src/libnftables.c > +++ b/src/libnftables.c > @@ -151,3 +151,92 @@ int nft_run_command_from_filename(struct nft_ctx *nft, > const char *f

[nft PATH 12/16] libnftables: transaction support

2017-08-16 Thread Eric Leblond
Add batch support for libnftables. This patch provides a set of function to handle batch command. The cinematic is the following: * nft_batch_start to allocate the batch structure * multiple call to nft_batch_add * nft_batch_commit to do the commit to kernel * nft_batch_free to free the batch