diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-03-16 20:31:24 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-03-19 12:06:02 +0000 |
commit | 8271aa85edeaa73e2cb2cd54a32a26d6bfb7bf1f (patch) | |
tree | 16c8723a71b48636b0820852c090ffff905d5f77 /epan/dissectors/packet-llrp.c | |
parent | 2e76b588407107c7d530cfb74a684bca38281885 (diff) |
LLRP: Display unknown data when vendor is unknown...
Bug:13473
Change-Id: Ia8ba177489be72c76b8b1168098de329ffcb8356
Reviewed-on: https://code.wireshark.org/review/20580
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-llrp.c')
-rw-r--r-- | epan/dissectors/packet-llrp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-llrp.c b/epan/dissectors/packet-llrp.c index e7d06804c4..22aac2a11f 100644 --- a/epan/dissectors/packet-llrp.c +++ b/epan/dissectors/packet-llrp.c @@ -239,6 +239,7 @@ static int hf_llrp_read_data = -1; static int hf_llrp_num_words_written = -1; static int hf_llrp_permlock_status = -1; static int hf_llrp_vendor_id = -1; +static int hf_llrp_vendor_unknown = -1; static int hf_llrp_impinj_param_type = -1; static int hf_llrp_save_config = -1; static int hf_llrp_impinj_req_data = -1; @@ -2259,6 +2260,10 @@ dissect_llrp_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, case LLRP_VENDOR_IMPINJ: suboffset = dissect_llrp_impinj_parameter(tvb, pinfo, param_tree, suboffset, param_end); break; + default: + proto_tree_add_item(param_tree, hf_llrp_vendor_unknown, tvb, offset, param_end-4, ENC_NA); + suboffset += param_end-4; + break; } break; } @@ -3530,6 +3535,10 @@ proto_register_llrp(void) { "Vendor ID", "llrp.param.vendor_id", FT_UINT32, BASE_DEC, VALS(llrp_vendors), 0, NULL, HFILL }}, + { &hf_llrp_vendor_unknown, + { "Vendor Unknown", "llrp.param.vendor_unknown", FT_UINT32, BASE_DEC, NULL, 0, + NULL, HFILL }}, + { &hf_llrp_impinj_param_type, { "Impinj parameter subtype", "llrp.param.impinj_param_type", FT_UINT32, BASE_DEC | BASE_EXT_STRING, &impinj_param_type_ext, 0, NULL, HFILL }}, |