aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-06-07 14:29:03 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-06-07 14:29:03 +0000
commit6d64725ae584930734c477bbc609bee4d509ff8c (patch)
tree676fe344348a5b81992fec906c5ae728f85c00a9 /epan
parentda282e9a74b09a412ac080dc5c52f0f18ec65e1d (diff)
ECI (E-UTRAN Cell Identifier) wrongly decoded.
Spotted by Tamás Regõs. svn path=/trunk/; revision=33128
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-gtpv2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c
index 31c83c42bd..d36afc8b67 100644
--- a/epan/dissectors/packet-gtpv2.c
+++ b/epan/dissectors/packet-gtpv2.c
@@ -906,8 +906,8 @@ dissect_gtpv2_uli(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto
/* The bits 8 through 5, of octet e+3 (Fig 8.21.5-1 in TS 29.274 V8.2.0) are spare
and hence they would not make any difference to the hex string following it, thus we directly read 4 bytes from tvb */
- proto_tree_add_item(tree, hf_gtpv2_uli_ecgi_eci, tvb, offset, 3, FALSE);
- offset+=3;
+ proto_tree_add_item(tree, hf_gtpv2_uli_ecgi_eci, tvb, offset, 4, FALSE);
+ offset+=4;
if(offset==length)
return;
@@ -1742,7 +1742,7 @@ void proto_register_gtpv2(void)
},
{&hf_gtpv2_uli_ecgi_eci,
{"ECI (E-UTRAN Cell Identifier)", "gtpv2.uli_ecgi_eci",
- FT_UINT32, BASE_DEC, NULL, 0x0,
+ FT_UINT32, BASE_HEX, NULL, 0x0FFFFFFF,
NULL, HFILL}
},
{&hf_gtpv2_f_teid_v4,