diff options
author | matibens <martin.tibensky@alcatel-lucent.com> | 2015-03-11 10:53:44 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-03-12 05:05:19 +0000 |
commit | c18a3c951e396fcedee4b69e395ba6bed984da56 (patch) | |
tree | b1c1c5d8f7f37655511b92351350b3d24e3907b6 | |
parent | a9c75ca3c8251d465d6350f1783ab3c972979a2f (diff) |
Add mip6.mnid.identifier as string with filter string instead of simple text
Change-Id: If9ecbb6ff77fff8131adf526bfec2bb08aa644aa
Reviewed-on: https://code.wireshark.org/review/7642
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/packet-mip6.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mip6.c b/epan/dissectors/packet-mip6.c index 0c01a59e0b..fc14edd4af 100644 --- a/epan/dissectors/packet-mip6.c +++ b/epan/dissectors/packet-mip6.c @@ -1035,6 +1035,7 @@ static int hf_fmip6_lla = -1; static int hf_fmip6_lla_optcode = -1; static int hf_mip6_mnid_subtype = -1; +static int hf_mip6_mnid_identifier = -1; static int hf_mip6_vsm_vid = -1; static int hf_mip6_vsm_subtype = -1; static int hf_mip6_vsm_subtype_3gpp = -1; @@ -2016,8 +2017,8 @@ dissect_mip6_opt_mnid(const mip6_opt *optp _U_, tvbuff_t *tvb, int offset, len = optlen - MIP6_MNID_MNID_OFF; if (len > 0) { - str = tvb_format_text(tvb, offset, len); - proto_tree_add_text(opt_tree, tvb, offset, len, "Identifier: %s", str); + str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, len, ENC_UTF_8|ENC_NA); + proto_tree_add_string(opt_tree, hf_mip6_mnid_identifier, tvb, offset, len, str); proto_item_append_text(hdr_item, ": %s", str); } } @@ -4412,6 +4413,11 @@ proto_register_mip6(void) FT_UINT8, BASE_DEC, VALS(mip6_mnid_subtype_value), 0, NULL, HFILL } }, + { &hf_mip6_mnid_identifier, + { "Identifier", "mip6.mnid.identifier", + FT_STRING, BASE_NONE, NULL, 0x0, + NULL, HFILL } + }, { &hf_mip6_opt_auth_sub_type, { "Subtype", "mip6.auth.subtype", FT_UINT8, BASE_DEC, VALS(mip6_auth_subtype_value), 0, |