Wireshark-bugs: [Wireshark-bugs] [Bug 7718] New: mm_context_nas_dl_cnt and mm_context_nas_ul_cnt
Date: Wed, 12 Sep 2012 03:00:24 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7718

           Summary: mm_context_nas_dl_cnt and mm_context_nas_ul_cnt are
                    not dissected properly in ContextResponse message in
                    Gtpv2
           Product: Wireshark
           Version: SVN
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: esahaapamaki@xxxxxxxxxxx


Build Information:
Version 1.9.0-SVN-44880 (SVN Rev 44880 from /trunk)

Copyright 1998-2012 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GTK+ 2.24.10, with Cairo 1.10.2, with Pango 1.30.0, with
GLib 2.32.2, with WinPcap (4_1_2), with libz 1.2.5, without POSIX capabilities,
without libnl, with SMI 0.4.8, with c-ares 1.7.1, with Lua 5.1, without Python,
with GnuTLS 2.12.18, with Gcrypt 1.4.6, without Kerberos, with GeoIP, with
PortAudio V19-devel (built Sep 11 2012), with AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with WinPcap version
4.1.2 (packet.dll version 4.1.0.2001), based on libpcap version 1.0 branch
1_0_rel0b (20091008), GnuTLS 2.12.18, Gcrypt 1.4.6, without AirPcap.

Built using Microsoft Visual C++ 10.0 build 40219
--
Hi,

The fields mm_context_nas_dl_cnt and mm_context_nas_ul_cnt are 3 octets long
but wireshark takes only the first octet.

Problem could be with these code lines:
    /* Octet 8-10 NAS Downlink Count*/
    proto_tree_add_item(tree, hf_gtpv2_mm_context_nas_dl_cnt, tvb, offset, 1,
ENC_BIG_ENDIAN);
    offset += 3;

    /* Octet 11-13 NAS Uplink Count */
    proto_tree_add_item(tree, hf_gtpv2_mm_context_nas_ul_cnt, tvb, offset, 1,
ENC_BIG_ENDIAN);
    offset += 3;

Offset is incresed by 3 but only 1 octet is read.

-Esa

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.