DIS dissector shows an incorrect state in the packet list info column
Summary
DIS Decoder reports every DIS Receiver PDU as having an OFF State in the list of packets, instead of the correct state that is shown when the packet is shown decoded.
Steps to reproduce
Somehow the tester will have to generate a DIS Receiver PDU, with a radio that is in the On but not receiving (1) or On and receiving (2) State. Examine the entry on the packet list, decoded as a DIS packet to see that the state is shown as Off (0) Examine the decoded packet to see that it is one of the other states (1, 2).
See Screenshot attached.
What is the current bug behavior?
The entry on the packet list, decoded as a DIS packet shows the state is Off (0)
What is the expected correct behavior?
The entry on the packet list, decoded as a DIS packet should shows the state correctly only 0 should show off.
Sample capture file
(If possible attach a sample capture file showing this issue)
Relevant logs and/or screenshots
https://gitlab.com/wireshark/wireshark/uploads/7a66fd619c969451f77507c7fa9a6e73/image.png
Build information
Version 4.0.4 (v4.0.4-0-gea14d468d9ca).
Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.32, build 31332),
with GLib 2.72.3, with PCRE2, with zlib 1.2.12, with Qt 5.15.2, with libpcap,
with Lua 5.2.4, with GnuTLS 3.6.3 and PKCS #11 support, with Gcrypt 1.10.1, with
Kerberos (MIT), with MaxMind, with nghttp2 1.46.0, with brotli, with LZ4, with
Zstandard, with Snappy, with libxml2 2.9.14, with libsmi 0.4.8, with
QtMultimedia, with automatic updates using WinSparkle 0.5.7, with AirPcap, with
SpeexDSP (using bundled resampler), with Minizip, with binary plugins.
Running on 64-bit Windows 10 (1809), build 17763, with Intel(R) Xeon(R) CPU
E3-1270 v5 @ 3.60GHz (with SSE4.2), with 32675 MB of physical memory, with GLib
2.72.3, with PCRE2 10.40 2022-04-14, with Qt 5.15.2, with Npcap version 1.71,
based on libpcap version 1.10.2-PRE-GIT, with c-ares 1.18.1, with GnuTLS 3.6.3,
with Gcrypt 1.10.1, with nghttp2 1.46.0, with brotli 1.0.9, with LZ4 1.9.3, with
Zstandard 1.5.2, without AirPcap, with light display mode, without HiDPI, with
LC_TYPE=English_United States.utf8, binary plugins supported.