diff options
author | João Valverde <j@v6e.pt> | 2023-06-30 15:05:29 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-06-30 15:24:59 +0000 |
commit | 8909312cd2d1afb33c9eab920e0e68be6e332999 (patch) | |
tree | 6ecb33132ec436d09164df044ea5dff79ab1d482 /test/suite_dfilter | |
parent | d09abde0820ec25ceda56b60247a55d0dbc71dd2 (diff) |
dfilter: Allow arithmetic expressions as set elements
Sets can now accept arithmetic expressions, not just fields
and constants.
Besides making sets more generic and useful it also nicely
simplifies the grammar specification.
The only caveat is that the use of curly braces can become
a bit confusing.
Diffstat (limited to 'test/suite_dfilter')
-rw-r--r-- | test/suite_dfilter/group_membership.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_membership.py b/test/suite_dfilter/group_membership.py index 1beae5689f..d8e772f7ed 100644 --- a/test/suite_dfilter/group_membership.py +++ b/test/suite_dfilter/group_membership.py @@ -90,3 +90,7 @@ class TestDfilterMembership: def test_membership_12_value_string(self, checkDFilterCount): dfilter = 'tcp.checksum.status in {"Unverified", "Good"}' checkDFilterCount(dfilter, 1) + + def test_membership_arithmetic_1(self, checkDFilterCountWithSelectedFrame): + dfilter = 'frame.time_epoch in {${frame.time_epoch}-46..${frame.time_epoch}+43}' + checkDFilterCountWithSelectedFrame(dfilter, 1, 1) |