Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] How to get absolute frame/packet index in buffer?

From: "Sebastien Dubois" <sebastien.dubois@xxxxxxxxxxxx>
Date: Thu, 18 Oct 2007 14:24:11 -0400
Title: How to get absolute frame/packet index in buffer?

Hi all,

  I'm currently developping a plugin and I have a little question:  Is it possible, from a given dissector, to get the number of bytes already dissected by lower-layer dissectors ?  In other words, can I get the index relative to start of a frame/packet buffer?  From my dissector point of view, for instance, the relative index to the start of the tvbuff passed to it is of course 0, which could be let's say index 50 relative to the absolute start of the ethernet frame/packet.

 So is there an API call/variable that I can check to get this index?

Thanks in advance
/Sebastien