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: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Sun, 02 Dec 2001 18:04:57 +0900 (JST)
Hamish,

From: Hamish Moffatt <hamish@xxxxxxxxxxxx>
Subject: Re: [Ethereal-dev] Pls advise for supporting new Ascend/Lucent format
Date: Sun, 2 Dec 2001 10:30:11 +1100

> >   [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.

I also came up with such an idea, but I just couldn't find an easy way
to do that, because parser generated by yacc/bison automatically reads
the line and parse it.

I learned yacc/lex more than 5 years ago so I forgot most of the
tidbits around it. I think it's time to study it again to recall the
details. 

If any yacc/lex guru here can shed me a light, I do appreciate it.

Regards,

=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
 +----+----+     
 |.. .|    |     Motonori Shindo
 |_~__|    |     
 | .. |~~_~|     Sr. Systems Engineer
 | .  |    |     CoSine Communications Inc.
 +----+----+     
 C o S i n e     e-mail:  mshindo@xxxxxxxxxxxxx 
Communications
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=