Wireshark mailing list archives
Re: dissector array display handling
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Fri, 02 Jul 2010 12:53:36 -0400
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 <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:
- dissector array display handling Manthos S. (Jul 02)
- Re: dissector array display handling Jeff Morriss (Jul 02)
- Re: dissector array display handling Guy Harris (Jul 02)
- Re: dissector array display handling Guy Harris (Jul 02)
- Re: dissector array display handling Anders Broman (Jul 02)
- Re: dissector array display handling Guy Harris (Jul 02)
- Re: dissector array display handling Jeff Morriss (Jul 02)