From 4c975b770e6bc6d16909c76954877d54d8f1f47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Tue, 5 Jul 2022 20:24:30 +0100 Subject: dfilter: Improve compatibility of integer types Before: $ dftest '_ws.ftypes.int64 == _ws.ftypes.int8' Filter: _ws.ftypes.int64 == _ws.ftypes.int8 dftest: _ws.ftypes.int64 and _ws.ftypes.int8 are not of compatible types. _ws.ftypes.int64 == _ws.ftypes.int8 ^~~~~~~~~~~~~~~ After: $ dftest '_ws.ftypes.int64 == _ws.ftypes.int8' Filter: _ws.ftypes.int64 == _ws.ftypes.int8 Syntax tree: 0 TEST_ANY_EQ: 1 FIELD(_ws.ftypes.int64 ) 1 FIELD(_ws.ftypes.int8 ) Instructions: 00000 READ_TREE _ws.ftypes.int64 -> reg#0 00001 IF_FALSE_GOTO 5 00002 READ_TREE _ws.ftypes.int8 -> reg#1 00003 IF_FALSE_GOTO 5 00004 ANY_EQ reg#0 === reg#1 00005 RETURN --- docbook/release-notes.adoc | 1 + 1 file changed, 1 insertion(+) (limited to 'docbook') diff --git a/docbook/release-notes.adoc b/docbook/release-notes.adoc index 2673f2d959..cceb4667e3 100644 --- a/docbook/release-notes.adoc +++ b/docbook/release-notes.adoc @@ -142,6 +142,7 @@ They previously shipped with Qt 5.12.2. This may be useful to match byte patterns but note that in general protocol fields with a string type still cannot contain embedded null bytes. ** Booleans can be written as True/TRUE or False/FALSE. Previously they could only be written as 1 or 0. ** It is now possible to test for the existence of a slice. +** All integer sizes are now compatible. Unless overflow occurs any integer field can be compared with any other. * The `text2pcap` command and the “Import from Hex Dump” feature have been updated and enhanced: ** `text2pcap` supports writing the output file in all the capture file formats that wiretap library supports, using the same `-F` option as `editcap`, `mergecap`, and `tshark`. -- cgit v1.2.3