]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: netfilter: Fix nft_audit.sh for newer nft binaries
authorPhil Sutter <phil@nwl.cc>
Thu, 26 Sep 2024 16:56:31 +0000 (18:56 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Sep 2024 11:55:24 +0000 (13:55 +0200)
commit8a89015644513ef69193a037eb966f2d55fe385a
treed1c4f6d1e29efdc3590c5e8e90908c3bde918768
parent76f1ed087b562a469f2153076f179854b749c09a
selftests: netfilter: Fix nft_audit.sh for newer nft binaries

As a side-effect of nftables' commit dbff26bfba833 ("cache: consolidate
reset command"), audit logs changed when more objects were reset than
fit into a single netlink message.

Since the objects' distribution in netlink messages is not relevant,
implement a summarizing function which combines repeated audit logs into
a single one with summed up 'entries=' value.

Fixes: 203bb9d39866 ("selftests: netfilter: Extend nft_audit.sh")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/net/netfilter/nft_audit.sh