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.


(cherry picked from commit 4992806dba)
This commit is contained in:
Andreas Schultz 2021-07-07 18:54:22 +02:00 committed by Jaap Keuter
parent 3e42a64f6f
commit be7bb332fe
1 changed files with 2 additions and 2 deletions

View File

@ -3011,7 +3011,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);
@ -3024,7 +3024,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);