From 8271aa85edeaa73e2cb2cd54a32a26d6bfb7bf1f Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 16 Mar 2017 20:31:24 +0100 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-llrp.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'epan/dissectors/packet-llrp.c') 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 }}, -- cgit v1.2.3