Wireshark-dev: Re: [Wireshark-dev] value_string from file
From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Mon, 7 Nov 2016 17:05:21 +0100
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@xxxxxxxxxxxxx?subject=unsubscribe