btlmp: Fix order of name offset and length fields
According to the Bluetooth Core Specification v5.3, Volume 2, Part C, Section 5.1, the Name_Offset parameter of the LMP_NAME_RES PDU should be at offset 2 in the payload and Name_Length should be at offset 3.
This commit is contained in:
parent
455b9a470f
commit
84dbc999f1
|
@ -585,10 +585,10 @@ dissect_btlmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
|
|||
break;
|
||||
|
||||
case 0x002: // LMP_name_res
|
||||
proto_tree_add_item(btlmp_tree, hf_param_namelength, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
++offset;
|
||||
proto_tree_add_item(btlmp_tree, hf_param_nameoffset, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
++offset;
|
||||
proto_tree_add_item(btlmp_tree, hf_param_namelength, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
++offset;
|
||||
if (tvb_captured_length_remaining(tvb, offset) <= 0)
|
||||
break;
|
||||
proto_tree_add_item(btlmp_tree, hf_param_namefragment, tvb, offset, tvb_captured_length_remaining(tvb, offset), ENC_NA);
|
||||
|
|
Loading…
Reference in New Issue