Ethereal-dev: Re: [ethereal-dev] Displaying protocol types even if you don't decocde the prot

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

From: Richard Sharpe <sharpe@xxxxxxxxxx>
Date: Wed, 12 Apr 2000 02:08:44 +0900
Hi,

At 07:32 AM 4/13/00 -0500, Gilbert Ramirez wrote:
>On Wed, Apr 12, 2000 at 12:58:53AM +0900, Richard Sharpe wrote:
>> Hi,
>> 
>> it seems that the way we handle most protocols is a little problematical,
>> in that we have to hard code most of the decodes.
>> 
>> My view is that these should be table driven. This allows us to add info
>> even if we cannot decode a protocol.
>> 
>> For example, ethertype 0x7030 is some silly Proteon thing, but I would have
>> to add some code if I wanted this to show up in the display ...
>
>You're right. The code in ethertype.c should be arranged into
>a table similar to how packet-ipx.c. But both tables could be
>changed so that the protocols that do have dissectors could be
>called via the handoff routines (that is, dissector_add() is used
>to register the dissector). Protocols that don't have dissectors
>would simply have their name printed (that's what the packet-ipx.c
>table called "ports" does).

Well, I don't understand the handoff routines yet, but I agree with you.

>--gilbert
>

Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
Author: First Australian 2-day, intensive, hands-on Samba course