diff options
| author | Liu Chao <liuc63@xiaopeng.com> | 2026-10-19 15:56:26 +0800 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-10-19 14:14:03 +0200 |
| commit | cd37ab22a74e05aae5c16c67295cbf5188b16268 (patch) | |
| tree | d86a9000b01d256f3c54d765dd03769f0ca56a4f /tools/perf/scripts/python | |
| parent | 08f7882637f2db5b98f521498eeaf94770383a6e (diff) | |
netfilter: nf_conntrack_netlink: fix inverted IPv6 tuple filter
ctnetlink_filter_match_tuple() returns 0 (no match) when the IPv6
source or destination address differs from the filter, because the
!ipv6_addr_cmp() test is inverted. ipv6_addr_cmp() returns 0 when
the addresses are equal, so the negation makes the branch trigger on
a match instead of a mismatch, which is the opposite of the IPv4
path above.
Drop the '!' so the IPv6 branch returns 0 only when the addresses
differ, matching the IPv4 semantics and the caller's expectation.
Fixes: cb8aa9a3affb ("netfilter: ctnetlink: add kernel side filtering for dump")
Cc: stable@vger.kernel.org
Signed-off-by: Liu Chao <liuc63@xiaopeng.com>
Reviewed-by: Weibin Liu <liuwb@xiaopeng.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
