Ethereal-dev: [Ethereal-dev] Using eth.type in proto_reg_handoff_XXX

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

From: "Jody Steele" <jmlsteele@xxxxxxx>
Date: Thu, 6 Nov 2003 02:48:13 -0500
I have a protocol, lets call it XXX for convenience sake.  I'm trying to write a plug-in for ethereal so I can display useful information about any XXX packets I receive.  The way I know a packet is one of "mine" is the Ethernet II Type field is 0xBADD.  Based on what I read in other packet-xxx.c files this should work, but when I try to run Ethereal I get an "Unspecified fatal error encountered, aborting." error message.
 
Line of code:
dissector_add("eth.type",0xbadd, XXX_handle);
 
OS: Windows XP
 
 
To see if it was that line or something else, I did a random test and changed eth.type with tcp.port.  It works perfectly fine then, although the results aren't as expected since the information doesn't fit one of my packets ;)
 
Any help would be appreciated.  I looked in the docs first, and through this mailing list but wasn't able to find anything.
 
Jody Steele