Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] value_string from file

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
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@xxxxxxxxx> wrote:
Hi,

While not ideal, it can be done. Have a look at packset-tpncp.c and the wimaxasncp plugin

Thanks,
Jaap


> On 07 Nov 2016, at 12:25, Jeroen Sack <JSack@xxxxxxxx> wrote:
>
> Hi,
>
> I am developing a dissector for ISO11783 (ISObus) which is using object IDs 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 a string_value object
>
> At the moment the amount of values is around 5000, but the protocol supports 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@xxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxx>
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