]> git.ipfire.org Git - thirdparty/nftables.git/commit
mnl: fix inclusion of last rule in batch page
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 30 Jan 2014 15:44:58 +0000 (16:44 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 30 Jan 2014 15:48:57 +0000 (16:48 +0100)
commit35f689ec8726dc262834d1906609bab85cebf976
tree39146963d3b8112671c3f1eb47c50770031409da
parent11ba3257796afbca42d9d6db7febf33f8cf90b92
mnl: fix inclusion of last rule in batch page

This patch fixes the inclusion of the last rule that didn't fit
into a batch page.

When using sets this has manifested with the -EBUSY error when deleting
the table (it was still containing unused sets after the flush).

The following command line works fine here:

nft -f test ; nft flush table filter ; nft delete chain filter output; nft delete table filter

Tested using this kernel patch: http://patchwork.ozlabs.org/patch/314143/

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/mnl.c