diff options
author | Florian Westphal <fw@strlen.de> | 2014-06-19 16:42:49 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2014-06-19 17:03:50 +0200 |
commit | 169b1a3f37a70018aa402d90ba564ad01cb3a4cd (patch) | |
tree | f88e462fd221a7cba5b50713bd1c23da456e382c /utils/conntrack_events.c | |
parent | 877de12b85f3eb46096022c4933c7647bb89f17a (diff) |
qa: add cmp ATTR_ZONE regression test cases
As reported by Ken-ichirou MATSUZAWA:
"conntrack -L --zone 0" doesn't list any output.
nfct_cmp(mask_obj, ct, NFCT_CMP_MASK)
considers ct to not match since the zone attribute
in ct is not set for the default (0) zone.
libnetfilter_conntrack should be more permissive and return
that these are equal iff 'mask_obj' has ATTR_ZONE with a 0 value,
and ct object has ATTR_ZONE not set.
These 3 checks currently fail, even though they really should not:
assert(test_cmp_attr32(ATTR_ZONE, true, false, 0, 0, NFCT_CMP_STRICT) == 1);
assert(test_cmp_attr32(ATTR_ZONE, false, true, 0, 0, NFCT_CMP_STRICT) == 1);
assert(test_cmp_attr32(ATTR_ZONE, true, false, 0, 0, NFCT_CMP_MASK) == 1);
Altough in all 3 cases the zone is only set in one conntrack, the value
is zero, so it should be equal to a conntrack object without the zone
bit set.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'utils/conntrack_events.c')
0 files changed, 0 insertions, 0 deletions