aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite_dfilter
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-09-21 16:39:21 +0100
committerJoão Valverde <j@v6e.pt>2023-09-21 22:25:51 +0000
commitd1971158a7c7f1d99937c5f223f7b0ab4d8b94af (patch)
tree89d38e6d2b1d293aef2c8825a337c62960c221a4 /test/suite_dfilter
parentbeff5df00d0f635cd0ad66d6e8ac6affbea6c8d5 (diff)
dfilter: Fix parsing booleans as value strings
Booleans can have true_false value strings other than "True" and "False". We still need to parse those. Fixes 4b6268c01eb8e8f4e96760a89552ca9672069c3f. Related to #19351.
Diffstat (limited to 'test/suite_dfilter')
-rw-r--r--test/suite_dfilter/group_syntax.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py
index d40cc025b3..70ea9fb73c 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -432,3 +432,10 @@ class TestDfilterXor:
def test_xor_4(self, checkDFilterCount):
dfilter = 'ip.src == 9.9.9.9 ^^ ip.dst == 9.9.9.9'
checkDFilterCount(dfilter, 0)
+
+class TestDfilterTFSValueString:
+ trace_file = "http.pcap"
+
+ def test_tfs_1(self, checkDFilterCount):
+ dfilter = 'ip.flags.df == "Set"'
+ checkDFilterCount(dfilter, 1)