Wireshark-dev: [Wireshark-dev] DTAP dissector not getting called from my dissector

Date: Thu, 24 May 2007 11:48:33 +0530
Hi ,
 
I've developed a dissector for understanding the wireshark , using an imaginary "test" protocol.
But I'm facing a problem with it .
When I try to call another dissector ( I'm calling "gsm_a_dtap") , I'm not getting any display for the wireshark gui .
The bytes related to dtap are not at all getting decoded and displayed , but the remaining portion are all displayed well .
 
Below is the code snippet I'm using :
 
1) void
proto_reg_handoff_test(void)
{
        static gboolean test_initialised = FALSE;
        static dissector_handle_t test_handle;
 
        if( !test_initialised) {
                 test_handle = create_dissector_handle(dissect_test,proto_test);
                 test_initialised = TRUE;
                }
        else {
                dissector_delete("sccp.ssn", SUA_SSN_TEST, test_handle);
                }
 
         dissector_add("sccp.ssn", SUA_SSN_TEST, test_handle);
         dtap_handle = find_dissector("gsm_a_dtap");
        }
 
2)call_dissector(dtap_handle, parameter_tvb, pinfo, test_new_tree);
 
Can anyone suggest whether I need to include something else too , to make the DTAP bytes get displayed properly by calling DTAP dissector from my TEST dissector .
 
Regards ,
Vikash
 

 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com