]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: nf_tables: export set count and backend name to userspace
authorFlorian Westphal <fw@strlen.de>
Tue, 8 Apr 2025 13:55:53 +0000 (15:55 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Apr 2025 22:00:27 +0000 (00:00 +0200)
commit0014af802193aa3547484b5db0f1a258bad28c81
tree3ab8658f2c4f171583db7f90b359cc669e1e3e21
parent149a133a548158586058d14963b4e3a699d0de70
netfilter: nf_tables: export set count and backend name to userspace

nf_tables picks a suitable set backend implementation (bitmap, hash,
rbtree..) based on the userspace requirements.

Figuring out the chosen backend requires information about the set flags
and the kernel version.  Export this to userspace so nft can include this
information in '--debug=netlink' output.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c