diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-02-03 21:51:35 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-02-03 21:51:35 +0000 |
commit | 72468bb0e5660867873a2febbeca74da83696d3d (patch) | |
tree | f9d72f9a7be3d94de52b9aadf939bdfbdcfbc440 /epan/dissectors/packet-q931.c | |
parent | 4d97ad9eb18d6556f7e78b81ac6ee3edbc29b2aa (diff) |
From Francisco Alcoba:
Patch for graphing ISUP calls. It shows the type of message,
in the first one the calling and called numbers, and in the second the SPs
and CIC; in releases it shows the cause value.
svn path=/trunk/; revision=13263
Diffstat (limited to 'epan/dissectors/packet-q931.c')
-rw-r--r-- | epan/dissectors/packet-q931.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c index 6bb9ba79ed..4e2f40000b 100644 --- a/epan/dissectors/packet-q931.c +++ b/epan/dissectors/packet-q931.c @@ -1173,10 +1173,9 @@ static const value_string q931_rejection_reason_vals[] = { void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, - proto_tree *tree, int hf_cause_value) + proto_tree *tree, int hf_cause_value, guint8 *cause_value) { guint8 octet; - guint8 cause_value; guint8 coding_standard; guint8 rejection_reason; @@ -1217,21 +1216,21 @@ dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, if (len == 0) return; octet = tvb_get_guint8(tvb, offset); - cause_value = octet & 0x7F; + *cause_value = octet & 0x7F; /* add cause value to packet info for use in tap */ if(have_valid_q931_pi) { - q931_pi->cause_value = cause_value; + q931_pi->cause_value = *cause_value; } - proto_tree_add_uint(tree, hf_cause_value, tvb, offset, 1, cause_value); + proto_tree_add_uint(tree, hf_cause_value, tvb, offset, 1, *cause_value); proto_tree_add_boolean(tree, hf_q931_extension_ind, tvb, offset, 1, octet); offset += 1; len -= 1; if (len == 0) return; - switch (cause_value) { + switch (*cause_value) { case Q931_CAUSE_UNALLOC_NUMBER: case Q931_CAUSE_NO_ROUTE_TO_DEST: @@ -2499,6 +2498,7 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_item *ti; proto_tree *ie_tree = NULL; guint8 info_element; + guint8 dummy; guint16 info_element_len; int codeset, locked_codeset; gboolean non_locking_shift, first_segment; @@ -2741,7 +2741,7 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, dissect_q931_cause_ie(tvb, offset + 2, info_element_len, ie_tree, - hf_q931_cause_value); + hf_q931_cause_value, &dummy); break; } if (q931_tree != NULL) { |