summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <fmancera@suse.de>2026-07-27 21:41:29 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2026-07-31 14:47:03 +0200
commite53932f0e5de19bff8740454ec6952df343d45bb (patch)
tree50ba116bec4019cf8b61727c3402ba39b3b47315 /tools/perf/scripts/python/libxed.py
parent2fbade66245059c78daeaccfce13ecf499fffb51 (diff)
netfilter: conncount: normalize tuple and zone on successful ct lookup
When get_ct_or_tuple_from_skb() falls back to looking for a connection via nf_conntrack_find_get(), a successful lookup sets ct but leaves tuple and zone unupdated. If the packet belongs to a reply flow, tuple will remain in the reply direction. As conncount relies on the original direction tuple to count the connections consistenly, passing an unnormalized reply tuple could lead to problems. Fix this by making sure that tuple and zone are normalized. Suggested-by: Florian Westphal <fw@strlen.de> Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions