Ethereal-dev: Re: [ethereal-dev] Dissector exceptions

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sat, 6 May 2000 15:00:13 -0700
> See how each call to proto_tree_add_* needs both the tvbuff pointer,
> which provides the offset relative to the start of the frame, and the
> offset, which will provide the offset relative to the start of the
> tvbuff?

That's arguably not a bug, but a feature; consider a packet constructed
from multiple frames (fragmented IP datagram, fragmented CLNP datagram,
higher-level packet from a TCP stream, segmented COTP packet, etc.),
when we support tvbuffs covering multiple frames - in one of those
packets, a field may well not have a single offset relative to the start
of a frame, as it may span frames.