Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: SV: [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: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Fri, 24 Jun 2005 00:19:29 +0200
Hi,
Checked in but by applying the patch to packet-tcap-template.c and
regenerating it as we now have a eth2asn generated tcap dissector.
Brg
Anders

-----Ursprungligt meddelande-----
Från: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] För Valery Vybornov
Skickat: den 23 juni 2005 12:57
Till: ethereal-dev@xxxxxxxxxxxx
Ämne: [Ethereal-dev] register_dissector to TCAP

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);
 }