]> git.ipfire.org Git - thirdparty/nftables.git/commit
libnftables: avoid repeated command list traversal on errors
authorJindrich Makovicka <makovick@gmail.com>
Sat, 2 May 2020 11:52:06 +0000 (13:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Sep 2020 11:47:37 +0000 (13:47 +0200)
commit371d32c63b892605b2baa6742234f6974ad59dcc
treecb443767dea1eb97de08f0065af37fa04c42e91b
parentfc0138b9ec8a2780cd59f31927abab896f6836c3
libnftables: avoid repeated command list traversal on errors

Because the command seqnums are monotonic, repeated traversals
of the cmds list from the beginning are not necessary as long as
the error seqnums are also monotonic.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/libnftables.c