aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isup.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-03-18 09:00:37 +0000
committerGuy Harris <guy@alum.mit.edu>2004-03-18 09:00:37 +0000
commit4afd41eededf53c14265a8346d3af1f6574a699a (patch)
tree6b3fcef22508001c0e613a0fed02cb324f880969 /packet-isup.c
parent4072ec7585f08b2ccbaa2dc756f42cd8f9c5627c (diff)
From Tomas Kukosa:
improve the Info column text for reassembled messages; register subdissectors for dissecting Q.931 IEs and make the ISUP dissector call the codeset 0 IE subdissector through a handle. svn path=/trunk/; revision=10400
Diffstat (limited to 'packet-isup.c')
-rw-r--r--packet-isup.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/packet-isup.c b/packet-isup.c
index 3721ef4b75..ba0866da10 100644
--- a/packet-isup.c
+++ b/packet-isup.c
@@ -9,7 +9,7 @@
* Modified 2004-01-10 by Anders Broman to add abillity to dissect
* Content type application/ISUP RFC 3204 used in SIP-T
*
- * $Id: packet-isup.c,v 1.54 2004/03/06 10:09:35 guy Exp $
+ * $Id: packet-isup.c,v 1.55 2004/03/18 09:00:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1374,7 +1374,8 @@ static gint ett_bat_ase_iwfa = -1;
-static dissector_handle_t sdp_handle;
+static dissector_handle_t sdp_handle = NULL;
+static dissector_handle_t q931_ie_handle = NULL;
/* ------------------------------------------------------------------
Mapping number to ASCII-character
@@ -1881,11 +1882,12 @@ static void
dissect_isup_access_transport_parameter(tvbuff_t *parameter_tvb, proto_tree *parameter_tree,
proto_item *parameter_item, packet_info *pinfo)
{ guint length = tvb_reported_length(parameter_tvb);
- gint offset = 0;
+
proto_tree_add_text(parameter_tree, parameter_tvb, 0, -1,
"Access transport parameter field (-> Q.931)");
- dissect_q931_IEs(parameter_tvb, pinfo, NULL, parameter_tree, FALSE, offset);
+ if (q931_ie_handle)
+ call_dissector(q931_ie_handle, parameter_tvb, pinfo, parameter_tree);
proto_item_set_text(parameter_item, "Access transport (%u byte%s length)",
length , plurality(length, "", "s"));
@@ -6242,6 +6244,7 @@ proto_reg_handoff_bicc(void)
{
dissector_handle_t bicc_handle;
sdp_handle = find_dissector("sdp");
+ q931_ie_handle = find_dissector("q931.ie");
bicc_handle = create_dissector_handle(dissect_bicc, proto_bicc);
dissector_add("mtp3.service_indicator", MTP3_BICC_SERVICE_INDICATOR, bicc_handle);