diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-02-05 13:44:57 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-02-07 23:24:57 +0000 |
commit | 8df2857bc1082797cc7052eb5a6ebb45ac92e4b9 (patch) | |
tree | 0453383c8129b0e34b927b1733821da2c90552e4 /asn1 | |
parent | a082f02937bcf8f0358b5e70c17c98876a6fd88d (diff) |
TCAP: Fix warning [-Wunused-function]
Change-Id: Ie30f39cf1d79f571824cb02583130e9ec828ede4
Reviewed-on: https://code.wireshark.org/review/13788
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/tcap/tcap.cnf | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/asn1/tcap/tcap.cnf b/asn1/tcap/tcap.cnf index 0629f7616a..f196465936 100644 --- a/asn1/tcap/tcap.cnf +++ b/asn1/tcap/tcap.cnf @@ -126,10 +126,15 @@ ABRT-apdu/_untag/user-information abrt_user_information tvbuff_t *parameter_tvb; guint8 len, i; proto_tree *subtree; - subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_otid, NULL, "Source Transaction ID"); + int saved_offset; - dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid, NULL); + hf_index = hf_tcap_tid; + saved_offset = offset; +%(DEFAULT_BODY)s PROTO_ITEM_SET_HIDDEN(actx->created_item); + offset = saved_offset; + + subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_otid, NULL, "Source Transaction ID"); offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_otid, ¶meter_tvb); @@ -152,25 +157,29 @@ ABRT-apdu/_untag/user-information abrt_user_information if (len) { col_append_str(actx->pinfo->cinfo, COL_INFO, "otid("); - for(i=0;i<len;i++) + for (i = 0; i < len; i++) { col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%%02x",tvb_get_guint8(parameter_tvb,i)); + } col_append_str(actx->pinfo->cinfo, COL_INFO, ") "); } - } - #---------------------------------------------------------------------------------------- #.FN_BODY DestTransactionID tvbuff_t *parameter_tvb; guint8 len , i; proto_tree *subtree; - subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_dtid, NULL, "Destination Transaction ID"); + int saved_offset; - dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid, NULL); + hf_index = hf_tcap_tid; + saved_offset = offset; +%(DEFAULT_BODY)s PROTO_ITEM_SET_HIDDEN(actx->created_item); + offset = saved_offset; + + subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_dtid, NULL, "Destination Transaction ID"); offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_dtid, - ¶meter_tvb); + ¶meter_tvb); if (parameter_tvb) { len = tvb_reported_length_remaining(parameter_tvb, 0); @@ -191,8 +200,9 @@ ABRT-apdu/_untag/user-information abrt_user_information if (len) { col_append_str(actx->pinfo->cinfo, COL_INFO, "dtid("); - for(i=0;i<len;i++) + for(i = 0; i < len; i++) { col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%%02x",tvb_get_guint8(parameter_tvb,i)); + } col_append_str(actx->pinfo->cinfo, COL_INFO, ") "); } } |