Ethereal-dev: [Ethereal-dev] register_dissector to TCAP

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

From: "Valery Vybornov" <vvvy@xxxxxxxx>
Date: Thu, 23 Jun 2005 14:57:00 +0400
Hi all,
 
I am developing a plugin for a proprietary protocol that carries TCAP. In order to make things work, I had to add register_dissector to packet-tcap.c (patch below). I suggest putting this into mainstream.
 
Regards,
 
Valery
 
--- epan/dissectors/packet-tcap.c.orig 2005-05-03 22:40:12.000000000 +0400
+++ epan/dissectors/packet-tcap.c 2005-06-23 14:36:27.213587500 +0400
@@ -2927,6 +2927,9 @@
     /* we will fake a ssn subfield which has the same value obtained from sccp */
     tcap_itu_ssn_dissector_table = register_dissector_table("tcap.itu_ssn", "ITU TCAP SSN", FT_UINT8, BASE_DEC);
     tcap_ansi_ssn_dissector_table = register_dissector_table("tcap.ansi_ssn", "ANSI TCAP SSN", FT_UINT8, BASE_DEC);
+
+    /* 'globally' register dissector */
+    register_dissector("tcap", dissect_tcap, proto_tcap);
 }