]> git.ipfire.org Git - thirdparty/nftables.git/commit
debug: include kernel set information on cache fill
authorFlorian Westphal <fw@strlen.de>
Tue, 8 Apr 2025 14:21:30 +0000 (16:21 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 22 Jun 2025 19:40:34 +0000 (21:40 +0200)
commit6063a4644746d12bebb39f3ca93e76de6392f5ec
treef30f779c47128dee44bed074c2477f7b5622f252
parent7cec20e45a7549d82b7eac8eac6c8a31458fe291
debug: include kernel set information on cache fill

Honor --debug=netlink flag also when doing initial set dump
from the kernel.

With recent libnftnl update this will include the chosen
set backend name that is used by the kernel.

Because set names are scoped by table and protocol family,
also include the family protocol number.

Dumping this information breaks tests/py as the recorded
debug output no longer matches, this is fixed in previous
change.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/mnl.c
src/netlink.c