Wireshark-dev: [Wireshark-dev] dissect_add error for tcap.ssn
Date: Fri, 28 Dec 2007 17:14:01 +0530
Hello ,
 
I am trying to include a dissector using my asn.1 format for a test protocol which runs over TCAP layer.
The test.asn file was written and compiled along with packet-test-template.c file in the ..wireshark/asn1/test directory .
 
But I am facing a poblem , an error is displayed with respect to "dissector_add" .
Here is how the "dissector_add" portion of my code looke like :
 
void proto_reg_handoff_tsrp(void){
  static int test_prefs_initialized = FALSE;
  if (!test_prefs_initialized) {
    test_prefs_initialized = TRUE;
    test_handle = create_dissector_handle(dissect_test, proto_test);}
   else
        dissector_delete("tcap.ssn", TCAP_SSN_TEST, test_handle);

 dissector_add("tcap.ssn", TCAP_SSN_TEST, test_handle);
}
Request you to please help me identify the mistake.
 
Regards ,
Atdev

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