diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-01-04 12:53:29 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-01-04 12:53:29 +0000 |
commit | bf7150a83479e12f9cd2753542d06b1f9e53d69f (patch) | |
tree | 65371ffe39c42a160b029e8dd3915f75e079a83b /epan/dissectors | |
parent | a6d82ae12e1e12dfe99dcc837a13c5485f273964 (diff) |
Get rid of ber_last_created_item().
svn path=/trunk/; revision=24009
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-h248.c | 26 | ||||
-rw-r--r-- | epan/dissectors/packet-h248.h | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-h248_3gpp.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-h248_annex_c.c | 2 |
4 files changed, 17 insertions, 17 deletions
diff --git a/epan/dissectors/packet-h248.c b/epan/dissectors/packet-h248.c index 94dd330859..eb97b11998 100644 --- a/epan/dissectors/packet-h248.c +++ b/epan/dissectors/packet-h248.c @@ -1,7 +1,7 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ /* packet-h248.c */ -/* ../../tools/asn2wrs.py -b -X -T -p h248 -c h248.cnf -s packet-h248-template h248v3.asn */ +/* ../../tools/asn2wrs.py -b -p h248 -c h248.cnf -s packet-h248-template h248v3.asn */ /* Input file: packet-h248-template.c */ @@ -1039,13 +1039,13 @@ extern void h248_param_PkgdName(proto_tree* tree, tvbuff_t* tvb, packet_info* pi name_minor=tvb_get_ntohs(new_tvb, 2); /* do the prettification */ - proto_item_append_text(ber_last_created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); + proto_item_append_text(asn1_ctx.created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); if(tree){ proto_item* pi; const gchar* strval; - package_tree = proto_item_add_subtree(ber_last_created_item, ett_packagename); + package_tree = proto_item_add_subtree(asn1_ctx.created_item, ett_packagename); proto_tree_add_uint(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major); for(i=0; i < packages->len; i++) { @@ -1191,10 +1191,10 @@ static int dissect_h248_PkgdName(gboolean implicit_tag, tvbuff_t *tvb, int offse packageandid=(name_major<<16)|name_minor; /* do the prettification */ - proto_item_append_text(ber_last_created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); + proto_item_append_text(actx->created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); if(tree){ - package_tree = proto_item_add_subtree(ber_last_created_item, ett_packagename); + package_tree = proto_item_add_subtree(actx->created_item, ett_packagename); proto_tree_add_uint(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major); } @@ -1250,9 +1250,9 @@ static int dissect_h248_EventName(gboolean implicit_tag, tvbuff_t *tvb, int offs packageandid=(name_major<<16)|name_minor; /* do the prettification */ - proto_item_append_text(ber_last_created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); + proto_item_append_text(actx->created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); if(tree){ - package_tree = proto_item_add_subtree(ber_last_created_item, ett_packagename); + package_tree = proto_item_add_subtree(actx->created_item, ett_packagename); } proto_tree_add_uint(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major); @@ -1327,9 +1327,9 @@ static int dissect_h248_SignalName(gboolean implicit_tag , tvbuff_t *tvb, int of packageandid=(name_major<<16)|name_minor; /* do the prettification */ - proto_item_append_text(ber_last_created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); + proto_item_append_text(actx->created_item, " %s (%04x)", val_to_str(name_major, package_name_vals, "Unknown Package"), name_major); if(tree){ - package_tree = proto_item_add_subtree(ber_last_created_item, ett_packagename); + package_tree = proto_item_add_subtree(actx->created_item, ett_packagename); } proto_tree_add_uint(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major); @@ -1440,7 +1440,7 @@ static int dissect_h248_SigParameterName(gboolean implicit_tag _U_, tvbuff_t *tv proto_item* pi; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &next_tvb); - pi = get_ber_last_created_item(); + pi = actx->created_item; switch(tvb_length(next_tvb)) { case 4: param_id = tvb_get_ntohl(next_tvb,0); break; @@ -1509,7 +1509,7 @@ static int dissect_h248_EventParameterName(gboolean implicit_tag _U_, tvbuff_t * proto_item* pi; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &next_tvb); - pi = get_ber_last_created_item(); + pi = actx->created_item; if (next_tvb) { switch(tvb_length(next_tvb)) { @@ -1594,9 +1594,9 @@ static int dissect_h248_MtpAddress(gboolean implicit_tag, tvbuff_t *tvb, int off } /* do the prettification */ - proto_item_append_text(ber_last_created_item, " NI = %d, PC = %d ( %d-%d )", val&0x03,val>>2,val&0x03,val>>2); + proto_item_append_text(actx->created_item, " NI = %d, PC = %d ( %d-%d )", val&0x03,val>>2,val&0x03,val>>2); if(tree){ - mtp_tree = proto_item_add_subtree(ber_last_created_item, ett_mtpaddress); + mtp_tree = proto_item_add_subtree(actx->created_item, ett_mtpaddress); } proto_tree_add_uint(mtp_tree, hf_h248_mtpaddress_ni, tvb, old_offset, offset-old_offset, val&0x03); proto_tree_add_uint(mtp_tree, hf_h248_mtpaddress_pc, tvb, old_offset, offset-old_offset, val>>2); diff --git a/epan/dissectors/packet-h248.h b/epan/dissectors/packet-h248.h index cb3e73d5a9..60a4a6f3b6 100644 --- a/epan/dissectors/packet-h248.h +++ b/epan/dissectors/packet-h248.h @@ -1,7 +1,7 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ /* packet-h248.h */ -/* ../../tools/asn2wrs.py -b -X -T -p h248 -c h248.cnf -s packet-h248-template h248v3.asn */ +/* ../../tools/asn2wrs.py -b -p h248 -c h248.cnf -s packet-h248-template h248v3.asn */ /* Input file: packet-h248-template.h */ diff --git a/epan/dissectors/packet-h248_3gpp.c b/epan/dissectors/packet-h248_3gpp.c index 90c69e966b..c508060da4 100644 --- a/epan/dissectors/packet-h248_3gpp.c +++ b/epan/dissectors/packet-h248_3gpp.c @@ -295,7 +295,7 @@ static void dissect_3GTFO_codec_mode(proto_tree* tree, tvbuff_t* tvb, packet_inf dissect_ber_octet_string(FALSE, &asn1_ctx, tree, tvb, 0, hfid, &sub_tvb ); if (sub_tvb) { - proto_tree* pt = proto_item_add_subtree(get_ber_last_created_item(),ett_h248_3GTFO_codec); + proto_tree* pt = proto_item_add_subtree(asn1_ctx.created_item, ett_h248_3GTFO_codec); dissect_codec_mode(pt, sub_tvb, 0, tvb_length(tvb)); } } else { @@ -319,7 +319,7 @@ static void dissect_3GTFO_codec_list(proto_tree* tree, tvbuff_t* tvb, packet_inf dissect_ber_octet_string(FALSE, &asn1_ctx, tree, tvb, 0, hfid, &sub_tvb ); if (sub_tvb) { - proto_tree* pt = proto_item_add_subtree(get_ber_last_created_item(),ett_h248_3GTFO_codec_list); + proto_tree* pt = proto_item_add_subtree(asn1_ctx.created_item,ett_h248_3GTFO_codec_list); int len = tvb_length(sub_tvb); int offset = 0; do { diff --git a/epan/dissectors/packet-h248_annex_c.c b/epan/dissectors/packet-h248_annex_c.c index 98348f39d0..e8f34bb47a 100644 --- a/epan/dissectors/packet-h248_annex_c.c +++ b/epan/dissectors/packet-h248_annex_c.c @@ -742,7 +742,7 @@ static void dissect_h248_annexc_acodec(proto_tree* tree, asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb); - tree = proto_item_add_subtree(get_ber_last_created_item(),ett_codec); + tree = proto_item_add_subtree(asn1_ctx.created_item,ett_codec); len = tvb_length(new_tvb); dissect_codec_mode(tree,new_tvb,0,len); } |