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: Gerald Combs <gerald@xxxxxxxxxxxx>
Date: Sun, 2 Dec 2001 11:22:09 -0600 (CST)
On Sun, 2 Dec 2001, Motonori Shindo wrote:

> 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 originally used yacc and bison for the Ascent/Lucent parser for no other
reason than to learn how to use yacc and bison.  We might be better off
rewriting it from scratch to parse the input directly, similar to the way
Gilbert's Toshiba ISDN router module works.


> 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
> =--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>