netfilter: nf_tables: hide clash bit from userspace
authorFlorian Westphal <fw@strlen.de>
Mon, 7 Jul 2025 20:32:44 +0000 (22:32 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Jul 2025 13:22:35 +0000 (15:22 +0200)
commit6ac86ac74e3a0608424240cc1ce813ad6e8a73dd
tree9c47fed4cb0f25ca4d7086777ca7a9f60eabd136
parent6dc2fae7f8a2384304ef48b7cdcb988222102a54
netfilter: nf_tables: hide clash bit from userspace

Its a kernel implementation detail, at least at this time:

We can later decide to revert this patch if there is a compelling
reason, but then we should also remove the ifdef that prevents exposure
of ip_conntrack_status enum IPS_NAT_CLASH value in the uapi header.

Clash entries are not included in dumps (true for both old /proc
and ctnetlink) either.  So for now exclude the clash bit when dumping.

Fixes: 7e5c6aa67e6f ("netfilter: nf_tables: add packets conntrack state to debug trace info")
Link: https://lore.kernel.org/netfilter-devel/aGwf3dCggwBlRKKC@strlen.de/
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_trace.c