netfilter: nfnetlink_hook: Dump nat type chains

These chains are indirectly attached to the hook since they are
not called for packets belonging to an established connection.

Introduce NF_HOOK_OP_NAT to identify the container and dump attached
entries instead of the container itself.

Dump these entries with the dispatcher's priority value since their own
priority merely defines ordering within the dispatcher's list.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
This commit is contained in:
Phil Sutter 2026-03-20 16:19:39 +01:00 • committed by Florian Westphal
commit b010e2a4a9
4 changed files with 48 additions and 10 deletions