Wireshark-dev: Re: [Wireshark-dev] How to get absolute frame/packet index in buffer?
From: Andrew Feren <acferen@xxxxxxxxx>
Date: Thu, 18 Oct 2007 11:41:54 -0700 (PDT)
How about TVB_RAW_OFFSET(tvb)?

/* Returns the offset from the first byte of real data. */


-Andrew

--- Sebastien Dubois <sebastien.dubois@xxxxxxxxxxxx> wrote:

> 
> 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
> 
> > _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
> 


-Andrew Feren
 acferen@xxxxxxxxx