GTPv2: fix decoding of (extended) eNodeB id

3GPP TS 29.274, clause 8.21.7 and 8.21.8 clearly specify a total
length of 6 bytes for these fields.
This commit is contained in:
Andreas Schultz 2021-07-07 18:54:22 +02:00 committed by Wireshark GitLab Utility
parent ce9b01f059
commit 4992806dba
1 changed files with 2 additions and 2 deletions

View File

@ -3045,7 +3045,7 @@ decode_gtpv2_uli(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_item
if (flags & GTPv2_ULI_MACRO_eNB_ID_MASK)
{
proto_item_append_text(item, "Macro eNodeB ID ");
part_tree = proto_tree_add_subtree(tree, tvb, offset, 7,
part_tree = proto_tree_add_subtree(tree, tvb, offset, 6,
ett_gtpv2_uli_field, NULL, "Macro eNodeB ID");
str = dissect_gtpv2_macro_enodeb_id(tvb, pinfo, part_tree, &offset);
@ -3058,7 +3058,7 @@ decode_gtpv2_uli(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_item
if (flags & GTPv2_ULI_EXT_MACRO_eNB_ID_MASK)
{
proto_item_append_text(item, "Ext Macro eNodeB ID ");
part_tree = proto_tree_add_subtree(tree, tvb, offset, 7,
part_tree = proto_tree_add_subtree(tree, tvb, offset, 6,
ett_gtpv2_uli_field, NULL, "Extended Macro eNodeB ID");
str = dissect_gtpv2_ext_macro_enodeb_id(tvb, pinfo, part_tree, &offset, hf_gtpv2_ext_macro_enodeb_id);