Wireshark-dev: Re: [Wireshark-dev] Dissector Question - arrays of data in packets - how to disp
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 27 Feb 2007 17:18:27 -0800

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 array index as an argument, and that add the array index value after the field name in the display representation of the item. (I think we may have discussed the issue of arrays earlier; I'll look for that discussion later.)