Apply As Filter for field with FT_NONE and BASE_NONE for a single byte does not use the hex value
Summary
I am working on a custom C plugin dissector for a protocol that can have different types of errors. I use the FT_NONE and BASE_NONE to register the header fields for these types of errors (since I just want to show the text in case the error exists).
When a packets is captured with an error the tree shows the correct text. But if I right click on the header field and select 'Apply as Filter' > 'Selected' the are no packets displayed. The filter uses the 'frame[23:1] == 20' which I believe is not correct. The value 20 shall be used as 0x20 because the filter is applied to a single byte.
Sample capture file
Unfortunately I can not attach a PCAP.
Steps to reproduce
I believe this will be the same for any dissector that uses FT_NONE and BASE_NONE.
What is the current bug behavior?
When I apply the EEP field as a filter
What is the expected correct behavior?
The expected result is to display the packet with the EEP.
Build information
Version 4.4.8 (v4.4.8-0-g0d289c003bfb).
Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.41, build 34123),
with GLib 2.80.0, with Qt 6.5.3, with libpcap, with zlib 1.3.1, with zlib-ng
2.1.5, with PCRE2, with Lua 5.4.6 (with UfW patches), with GnuTLS 3.8.4 and PKCS
#11 support, with Gcrypt 1.10.2-unknown, with Kerberos (MIT), with MaxMind, with
nghttp2 1.62.1, with nghttp3 0.14.0, with brotli, with LZ4, with Zstandard, with
Snappy, with libxml2 2.13.5, with libsmi 0.5.0, with Minizip-ng , with
QtMultimedia, with automatic updates using WinSparkle 0.8.0, with AirPcap, with
binary plugins.
Running on 64-bit Windows 10 (22H2), build 19045, with Intel(R) Core(TM)
i5-5300U CPU @ 2.30GHz (with SSE4.2), with 16253 MB of physical memory, with
GLib 2.80.0, with Qt 6.5.3, with Npcap version 0.995, based on libpcap version
1.9.1-PRE-GIT, with PCRE2 10.43 2024-02-16, with c-ares 1.27.0, with GnuTLS
3.8.4, with Gcrypt 1.10.2-unknown, with nghttp2 1.62.1, with nghttp3 0.14.0,
with brotli 1.0.9, with LZ4 1.9.4, with Zstandard 1.5.6, without AirPcap, with
dark display mode, without HiDPI, with QPA plugin "windows", with
LC_TYPE=English_Europe.utf8, binary plugins supported.