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

Ethereal-dev: RE: [Ethereal-dev] Multi-width integers

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Sun, 2 Mar 2003 12:02:54 +0100
> -----Original Message-----
> From: Guy Harris [mailto:guy@xxxxxxxxxx]
> Subject: Re: [Ethereal-dev] Multi-width integers
> 
> On Fri, Feb 28, 2003 at 02:54:27PM +0100, Biot Olivier wrote:
> > In some protocols, some fields can be ieither FT_UINT8, 
> FT_UINT16, FT_UINT24
> > or FT_UINT32 depending on the value. The WSP protocol has 
> such fields.
> > Should we define the protocol fields as FT_UINT32 then, so to avoid
> > duplicate entries? One cannot register a protocol field 
> more than once...
> 
> Actually, one can - see, for example, the X.25 dissector, which has
> mod-8 and mod-128 versions of various fields, so that one can, for
> example, refer to the packet receive sequence number as "x.25.p_r"
> regardless of what bits it occupies in the byte in which it appears.

The problem is that ethereal -G only reports the 1st occurrence
(FT_UINT8)...

Regards,

Olivier