summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2025-05-22 16:49:34 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2025-05-23 14:57:12 +0300
commit7e5c6aa67e6f6133c5a2c53852e1dd9af2c0c3fc (patch)
tree413e201ebe3b7983d3bc650ad641624a1f4563f5 /tools/perf/scripts/python/export-to-sqlite.py
parent90869f43d06dfc836def2f53850a878f829e443e (diff)
downloadlinux-7e5c6aa67e6f6133c5a2c53852e1dd9af2c0c3fc.tar.xz
netfilter: nf_tables: add packets conntrack state to debug trace info
Add the minimal relevant info needed for userspace ("nftables monitor trace") to provide the conntrack view of the packet: - state (new, related, established) - direction (original, reply) - status (e.g., if connection is subject to dnat) - id (allows to query ctnetlink for remaining conntrack state info) Example: trace id a62 inet filter PRE_RAW packet: iif "enp0s3" ether [..] [..] trace id a62 inet filter PRE_MANGLE conntrack: ct direction original ct state new ct id 32 trace id a62 inet filter PRE_MANGLE packet: [..] [..] trace id a62 inet filter IN conntrack: ct direction original ct state new ct status dnat-done ct id 32 [..] In this case one can see that while NAT is active, the new connection isn't subject to a translation. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions