Wireshark mailing list archives
Re: Wireshark Qt : Decode As
From: Guy Harris <guy () alum mit edu>
Date: Mon, 4 Aug 2014 15:33:29 -0700
On Aug 4, 2014, at 1:13 PM, Alexis La Goutte <alexis.lagoutte () gmail com> wrote:
The decode As feature work for you with Wireshark Qt (qtshark) I have try on Windows, Linux, Mac OS X and don't work for me... (the value is never save...)
Isn't saved, as in "isn't written to the decode_as_entries file", or is saved but doesn't work?
if i try with GTK and reopen with Qt works...
For uint dissector tables, GTK+ was writing out the value in decimal, regardless of the base of the value for the table; Qt was writing it out in hex if the base for the value was hex. The code to *read* the tables assumed decimal, and read a hex value as 0, because it was using atoi(). I fixed it to use strtol() with a base argument of 0 (so that a number beginning with 0x or 0X is treated as hex), and to check that that the string was a valid number and the value was in the range 0 -> UINT_MAX and report lines where it isn't. This fixes it to the extent that the saved values work; I backported that fix to the 1.12 branch. However, if I change it in Qt, the change doesn't take effect until I quit and restart Wireshark, so there's another bug hiding there. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Wireshark Qt : Decode As Alexis La Goutte (Aug 04)
- Re: Wireshark Qt : Decode As Guy Harris (Aug 04)
- Re: Wireshark Qt : Decode As Joerg Mayer (Aug 05)
- Re: Wireshark Qt : Decode As Alexis La Goutte (Aug 06)
- Re: Wireshark Qt : Decode As Joerg Mayer (Aug 05)
- Re: Wireshark Qt : Decode As Guy Harris (Aug 04)