Manthos S. wrote:
> Dear experts,
> 
> i am about to improve my dissector (diverse LTE Protocols).
> 
> Is there any array handling in wireshark code to use for displaying the 
> arrays of data properly in the packet details field?
> 
> What i mean: I want to display the content of the arrays in an array 
> style with box brackets. I should be able to choose how many elements of 
> the array should be displayed by getting a value from somewhere else in 
> the packet with tvb_get for example.

There's no API to do that automatically.

But a simple for loop with some proto_tree_add*_format() calls would do 
it easily enough. (The _format part being necessary so you can put the 
brackets and index in the tree.)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to