Your dissector needs to register itself to the "ethertype" dissector
call. Look at how packet-ipx.c does it:
ipx_handle = find_dissector("ipx");
dissector_add("ethertype", ETHERTYPE_IPX, ipx_handle);
In this case, ETHERTYPE_IPX is defined as 0x8137 in etypes.h in the
top-level directory of the Ethereal source code.
--gilbert
On 6/9/05, Sahil Kumar <Sahil.Kumar@xxxxxxxxxxx> wrote:
>
> Hi,
>
> I really need some help here. I am building a protocol that is currently
> seen in ethereal as "Type: unknown (0x0606)" . I am pretty sure my plug-in
> dissector is almost complete and correct. The issue that I am unable to
> figure out is why is my protocol not being identified by Ethernet II. I am
> sure I am missing something small here. I would truly appreciate it if you
> could let me know where am I missing something out.
> More precisely, how do I make Ethernet II know that the Type 0x0606 is my
> protocol!!
> Thanks a ton.
>
> Best Regards,
> Sahil
>
> -----------------------------------------------------------
> -----
> Visit our Internet site at http://www.reuters.com
>
> To find out more about Reuters Products and Services visit
> http://www.reuters.com/productinfo
>
> Any views expressed in this message are those of the individual
> sender, except where the sender specifically states them to be
> the views of Reuters Ltd.
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>
>
>