ECI (E-UTRAN Cell Identifier) wrongly decoded.
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Jun 2010 14:29:03 +0000 (14:29 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Jun 2010 14:29:03 +0000 (14:29 +0000)
Spotted by Tamás Regõs.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33128 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-gtpv2.c

index 31c83c42bddda236612f8f916e7a79fc67e7fae3..d36afc8b676245bc9b0e68f3fb8dbc280d948909 100644 (file)
@@ -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,