Wireshark mailing list archives
Re: value_string from file
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Mon, 7 Nov 2016 11:17:23 -0500
The RADIUS and Diameter dissectors also read most of their value_strings (and other things) from files. On Mon, Nov 7, 2016 at 11:05 AM, Jaap Keuter <jaap.keuter () xs4all nl> wrote:
Hi, While not ideal, it can be done. Have a look at packset-tpncp.c and the wimaxasncp plugin Thanks, JaapOn 07 Nov 2016, at 12:25, Jeroen Sack <JSack () lely com> wrote: Hi, I am developing a dissector for ISO11783 (ISObus) which is using objectIDs which are constant per application. I have a file where these values are defined which I would like to read in my dissector so it is easier to see what is happening. What I was wondering about if this has been done before already and if not would it be advisable to do this or can I better display numbers and let the conversion up to the user?The way I would like to implement it is as follows: - Define a way to define the number to string definition, most likely csv - Add an option in preferences to indicate where this file is located - At startup or change of setting read this file and generate astring_value objectAt the moment the amount of values is around 5000, but the protocolsupports 65534 values. We would like to make this dissector available for public use as soon as it is ready.Best regards, Jeroen Sack (Lely Industries N.V.)___________________________________________________________________________Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe ____________________________________________________________ _______________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject= unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- value_string from file Jeroen Sack (Nov 07)
- Re: value_string from file Jaap Keuter (Nov 07)
- Re: value_string from file Alexis La Goutte (Nov 07)
- Re: value_string from file Jeff Morriss (Nov 07)
- Re: value_string from file Jaap Keuter (Nov 07)