[Wireshark-dev] Dissector Question - arrays of data in packets - how to display

2007-02-24 Thread John Jamulla
Hello, I have a working dissector now, and have figured out many part of how to display individual values, fields, strings, etc. I have some subtrees as well, but... I have some data in my own protocol that is really a set of 512, 2 byte bit fields, and I want to display something like: Generato

Re: [Wireshark-dev] Dissector Question - arrays of data in packets - how to display

2007-02-27 Thread Stephen Fisher
On Sat, Feb 24, 2007 at 11:04:27AM -0500, John Jamulla wrote: > I have some data in my own protocol that is really a set of 512, 2 > byte bit fields, and I want to display something like: > > Generator 1 Fielda > Generator 1 Fieldb > Generator 1 Fieldc > Generator 1 Fieldd > Generator 2

Re: [Wireshark-dev] Dissector Question - arrays of data in packets - how to display

2007-02-27 Thread Guy Harris
On Feb 27, 2007, at 5:05 PM, Stephen Fisher wrote: > You would typically use proto_tree_add_item() and define the bitmask > as > part of the hf[] field registration. Unfortunately, that doesn't handle the "Generator 1"/"Generator 2"/... issue. It might be useful to add new APIs that take an

Re: [Wireshark-dev] Dissector Question - arrays of data in packets - how to display

2007-02-27 Thread John Jamulla
I click on one "group" of those in the middle pane, will it highlight the proper bytes in the bottom display Sincerely, John Jamulla - Original Message - From: "Stephen Fisher" <[EMAIL PROTECTED]> To: "Developer support list for Wireshark" Sent: Tues

Re: [Wireshark-dev] Dissector Question - arrays of data in packets - how to display

2007-02-28 Thread Guy Harris
Guy Harris wrote: > Unfortunately, that doesn't handle the "Generator 1"/"Generator 2"/... > issue. > > It might be useful to add new APIs that take an array index as an > argument, and that add the array index value after the field name in > the display representation of the item. (I thin