Wireshark-dev: Re: [Wireshark-dev] Adding count to the displayed data
Date Prev · Date Next · Thread Prev · Thread Next
From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Thu, 01 Jul 2010 08:21:10 +0200
On 06/30/2010 06:06 PM, eymanm wrote:
I'm extracting a multiple pieces of similar data using a for(i=0; i<max;
i++) loop. I'd like to add the "i" to each piece of data being
displayed. Something like:

Piece0
   data
Piece1
   data
Piece2
   data

and so on. I tried to use PROTO_ITEM_SET_GENERATED(i), didn't work. Can
somebody advise how to do it?
Thanks


Hi,

Have a look at proto_item_append_text().

Thanks,
Jaap