Ethereal-users: Re: [Ethereal-users] Sinec_H1 decode

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 8 Nov 2001 18:01:55 -0800 (PST)
> Q2. Ethereall  decode value 0Ah of TPDU size field as 2048 bytes. Is it
> correct?
>            ISO8073  : 07h - 128
>                             08h - 256
>                             09h - 512
>                             0Ah - 1024
>                             0Bh - 2048

The value is the log base 2 of the TPDU size; the code to compute 2^n is
doing as "2 << n", not the correct "1 << n".  I will check in a fix.