Ethereal-dev: Re: [Ethereal-dev] How change the display of the ethertype in protocol tree

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

From: Kelvin You <kelvin.sdc@xxxxxxxxx>
Date: Fri, 2 Dec 2005 16:04:38 +0800
Thanks very much!
But because my dissector is build as a plugin. I want it will work absolute. and no need build all the ethereal source code. however, if I modify the epan/etypes.h and epan/dissectors/packet-ethertype.c, I must build  the whole ethereal code. and distribute it with large package. Is there other way to change the type name ?

 
On 12/2/05, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
On Fri, Dec 02, 2005 at 02:05:17PM +0800, Kelvin You wrote:
>         dissector_add("ethertype", 0x8888, scmu_handle);
> Now I can dissect the ethernet payload data. but in the ethernet header, the
> protocol tree still show the 0x8888 is "unknow" type.
> How can I change it to my protocol name ?

look at epan/etypes.h and epan/dissectors/packet- ethertype.c

Ciao
   Joerg
--
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev