diff options
author | AndersBroman <anders.broman@ericsson.com> | 2015-04-09 14:36:26 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-04-09 12:38:04 +0000 |
commit | c2a1d8feed0791478629c8dba775ec5f3bda7653 (patch) | |
tree | c224f56e5e36002414977001a3dcb79f3da5e3f2 /asn1/p1 | |
parent | 5fa267e870364902864d67f9ea297e52e6029cd7 (diff) | |
download | wireshark-c2a1d8feed0791478629c8dba775ec5f3bda7653.tar.gz |
Replace deprecated API tvb_length -> tvb_reported_length
Change-Id: I9c8bf6beec47afb901e492723b335a28a24f455e
Reviewed-on: https://code.wireshark.org/review/8004
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1/p1')
-rw-r--r-- | asn1/p1/p1.cnf | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/asn1/p1/p1.cnf b/asn1/p1/p1.cnf index 4ac72fd154..85244ded61 100644 --- a/asn1/p1/p1.cnf +++ b/asn1/p1/p1.cnf @@ -539,7 +539,7 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" if(actx->external.indirect_ref_present) { proto_item_append_text(tree, " (%%s)", val_to_str(actx->external.indirect_reference, p1_StandardExtension_vals, "standard-extension %%d")); if (dissector_try_uint(p1_extension_dissector_table, actx->external.indirect_reference, tvb, actx->pinfo, tree)) { - offset = tvb_length(tvb); + offset = tvb_reported_length(tvb); } else { proto_item *item; proto_tree *next_tree; @@ -577,7 +577,7 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" proto_item_append_text(tree, " (%%s)", val_to_str(actx->external.indirect_reference, p1_ExtensionAttributeType_vals, "extension-attribute-type %%d")); if (dissector_try_uint(p1_extension_attribute_dissector_table, actx->external.indirect_reference, tvb, actx->pinfo, tree)) { - offset =tvb_length(tvb); + offset =tvb_reported_length(tvb); } else { proto_item *item; proto_tree *next_tree; @@ -669,7 +669,7 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" /* we can do this now constructed octet strings are supported */ offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_index, &next_tvb); - proto_item_set_text(actx->created_item, "content (%%u bytes)", tvb_length (next_tvb)); + proto_item_set_text(actx->created_item, "content (%%u bytes)", tvb_reported_length (next_tvb)); if (next_tvb) { if (ctx && ctx->content_type_id) { @@ -679,7 +679,7 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" proto_tree *next_tree; item = proto_tree_add_expert(actx->subtree.top_tree ? actx->subtree.top_tree : tree, actx->pinfo, &ei_p1_unknown_built_in_content_type, - next_tvb, 0, tvb_length_remaining(tvb, offset)); + next_tvb, 0, tvb_reported_length_remaining(tvb, offset)); next_tree=proto_item_add_subtree(item, ett_p1_content_unknown); dissect_unknown_ber(actx->pinfo, next_tvb, 0, next_tree); @@ -698,10 +698,10 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" %(DEFAULT_BODY)s if (ctx && ctx->do_address) { - proto_item_append_text(actx->subtree.tree, " %%s", tvb_format_text(mtaname, 0, tvb_length(mtaname))); + proto_item_append_text(actx->subtree.tree, " %%s", tvb_format_text(mtaname, 0, tvb_reported_length(mtaname))); } else { if (mtaname) { - col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %%s", tvb_format_text(mtaname, 0, tvb_length(mtaname))); + col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %%s", tvb_format_text(mtaname, 0, tvb_reported_length(mtaname))); } } @@ -1053,10 +1053,10 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" if(id) { if (ctx && ctx->do_address) - proto_item_append_text(actx->subtree.tree, " $ %%s)", tvb_format_text(id, 0, tvb_length(id))); + proto_item_append_text(actx->subtree.tree, " $ %%s)", tvb_format_text(id, 0, tvb_reported_length(id))); if (hf_index == hf_p1_subject_identifier) - col_append_fstr(actx->pinfo->cinfo, COL_INFO, " $ %%s)", tvb_format_text(id, 0, tvb_length(id))); + col_append_fstr(actx->pinfo->cinfo, COL_INFO, " $ %%s)", tvb_format_text(id, 0, tvb_reported_length(id))); } #.FN_BODY MTSIdentifier @@ -1125,7 +1125,7 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" %(DEFAULT_BODY)s if(arrival && ctx && ctx->do_address) - proto_item_append_text(actx->subtree.tree, " %%s", tvb_format_text(arrival, 0, tvb_length(arrival))); + proto_item_append_text(actx->subtree.tree, " %%s", tvb_format_text(arrival, 0, tvb_reported_length(arrival))); #.FN_PARS RoutingAction VAL_PTR = &action @@ -1173,7 +1173,7 @@ MessageToken B "2.6.1.7.36" "id-hat-forwarded-token" proto_item_append_text(tree, " (%%s)", val_to_str(actx->external.indirect_reference, p1_TokenDataType_vals, "tokendata-type %%d")); if (dissector_try_uint(p1_tokendata_dissector_table, actx->external.indirect_reference, tvb, actx->pinfo, tree)) { - offset = tvb_length(tvb); + offset = tvb_reported_length(tvb); } else { proto_item *item; proto_tree *next_tree; |