Ethereal-dev: Re: [Ethereal-dev] Pls advise for supporting new Ascend/Lucent format

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

From: Hamish Moffatt <hamish@xxxxxxxxxxxx>
Date: Sun, 2 Dec 2001 10:30:11 +1100
On Sat, Dec 01, 2001 at 09:54:59PM +0900, Motonori Shindo wrote:
> It may be possible to handle the above case, but for example as an
> extreme case like
> 
>   [0000]: ff 03 c2 23 02 01 00 19  10 35 39 cd b5 84 9d 14    ...#.... .59.....
>   [0010]: 35 39                                               59
> 
> there's almost no way to distinguish this from the one in the old
> format as follows:
> 
>   [0000]: ff 03 c2 23 02 01 00 19  10 35 39 cd b5 84 9d 14
>   [0010]: 35 39 59
                                                            ^

Could you just truncate each line at the end of the hex dump
before parsing? ie at the position I indicated. This might not
be the most flexible way to do it (eg if the address at the
left grows too big it may push everything to the right), but workable.

Even better, truncate it just before the ASCII dump, then you have
some room for growth in the fields to the left.

Hamish
-- 
Hamish Moffatt VK3SB <hamish@xxxxxxxxxx> <hamish@xxxxxxxxxxxx>