diff options
author | Martin Willi <martin@strongswan.org> | 2020-09-01 08:56:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-09-08 13:04:51 +0200 |
commit | 6c0d95d1238d944fe54f0bbfc7ec017d78435daa (patch) | |
tree | 6f3d07e486bd69f2b2c68a4578f978d4ced5463b /net/ipv6/Makefile | |
parent | 67cc570edaa02016a8685a06a0ee91f05a6277d9 (diff) |
netfilter: ctnetlink: fix mark based dump filtering regression
conntrack mark based dump filtering may falsely skip entries if a mask
is given: If the mask-based check does not filter out the entry, the
else-if check is always true and compares the mark without considering
the mask. The if/else-if logic seems wrong.
Given that the mask during filter setup is implicitly set to 0xffffffff
if not specified explicitly, the mark filtering flags seem to just
complicate things. Restore the previously used approach by always
matching against a zero mask is no filter mark is given.
Fixes: cb8aa9a3affb ("netfilter: ctnetlink: add kernel side filtering for dump")
Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6/Makefile')
0 files changed, 0 insertions, 0 deletions