Ethereal-dev: [Ethereal-dev] My dissector and subdissector question

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

From: Sean Mistry <therealdizza@xxxxxxxxx>
Date: Thu, 8 May 2003 13:18:21 -0700 (PDT)
Hi all,
 
I'm creating 2 proprietary dissectors that reside over TCP.  I have created and successfully installed both dissectors and its even recognized.  However, the problem that I have is that it my second or subdissector doesn't respond when the first dissector is load with the captured data. 
 
 
 
(The data is fine, not corrupted at all.)
 
When my first dissector gets called here's how I do it:
 
 

in my proto register
 
 ...(&hf_super_prefix, {"Superset Protocol", "super.prefix", FT_UINT32. BASE_HEX, NULL, 0x0, "", HFILL}}
 
subdissector_table = register_dissector_table("super.prefix", "SUPERSET PREFIX", FT_UINT32, BASE_HEX);
 
register_dissector("super", dissect_super, proto_super);
 
 
in my proto_reg_handoff routine
 
dissector_handle_t super_handle;
super_handle = find_dissector("super");
dissector_add("tcp.port", 8000, super_handle);
 
This works just fine.
 
In my subdissector I have:
 
in my proto_reg_handoff routine
 
dissector_handle_t subset_handle;
subset_handle = find_dissector("subset");
dissector_add("super.prefix", 3A3A3A3A, subset_handle);
 
Am I supposed to set the value for super.prefix somewhere in its file?  If so, how?
 
Please and thanks,
Sean


___________________________________________

IP makes the world go round.....


Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.