ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Adding count to the displayed data

From: eymanm <eymanm@xxxxxxxxx>
Date: Wed, 30 Jun 2010 12:06:57 -0400
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