Wireshark-bugs: [Wireshark-bugs] [Bug 2945] New: 3GPP TMSI STATUS IE decoding does not update cu
Date: Wed, 8 Oct 2008 06:03:35 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2945

           Summary: 3GPP TMSI STATUS IE decoding does not update curr_offset
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: pascal.quantin@xxxxxxxxx


Build Information:
Build Information:
Version 1.1.2

Copyright 1998-2008 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 with GTK+ 2.14.3, with GLib 2.18.1, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8,
with c-ares 1.5.3, without ADNS, with Lua 5.1, with GnuTLS 2.3.8, with Gcrypt
1.4.1, with MIT Kerberos, with PortAudio V19-devel (built Oct  2 2008), with
AirPcap.

Running on Windows XP Service Pack 3, build 2600, with WinPcap version 4.0.2
(packet.dll version 4.0.0.1040), based on libpcap version 0.9.5, without
AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729

Wireshark is Open Source Software released under the GNU General Public
License.

Check the man page and http://www.wireshark.org for more information.

--
When decoding the following GMM Attach Request message:
08 01 02 65 00 23 0D 01 08 09 10 10 10 32 54 76 98 00 F1 10 00 05 05 06 04 02
00 20 18 0B 19 00 00 00 90

We get the following output:

GSM A-I/F DTAP - Attach Request
    Protocol Discriminator: GPRS mobility management messages
        0000 .... = Skip Indicator: 0
        .... 1000 = Protocol discriminator: GPRS mobility management messages
(8)
    DTAP GPRS Mobility Management Message Type: Attach Request (0x01)
    MS Network Capability
        Length: 2
        GEA1: (0) encryption algorithm not available
        SM capabilities via dedicated channels: (1) Mobile station supports
mobile terminated point to point SMS via dedicated signalling channels
        SM capabilities via GPRS channels: (1) Mobile station supports mobile
terminated point to point SMS via GPRS packet data channels
        UCS2 support: (0) the ME has a preference for the default alphabet
(defined in 3GPP TS 23.038 [8b]) over UCS2
        SS Screening Indicator: (1) capability of handling of ellipsis notation
and phase 2 error handling
        SoLSA Capability: (0) The ME does not support SoLSA
        Revision level indicator: (1) used by a mobile station supporting R99
or later versions of the protocol
        PFC feature mode: (0) Mobile station does not support BSS packet flow
procedures
        GEA2: (0) encryption algorithm not available
        GEA3: (0) encryption algorithm not available
        GEA4: (0) encryption algorithm not available
        GEA5: (0) encryption algorithm not available
        GEA6: (0) encryption algorithm not available
        GEA7: (0) encryption algorithm not available
        LCS VA capability:: (0) LCS value added location request notification
capability not supported
    Attach Type
        Type: (3) Combined GPRS/IMSI attach
        Follow: (0) No follow-on request pending
    Ciphering key sequence number: 0x02 (2)
    DRX Parameter
        Split PG Cycle Code: (13) 13
        0000 .... = CN Specific DRX cycle length coefficient: CN Specific DRX
cycle length coefficient not specified by the MS (0)
        .... 0... = SPLIT on CCCH: Split pg cycle on CCCH is not supported by
the mobile station
        .... .001 = Non-DRX timer: max. 1 sec non-DRX mode after transfer state
(1)
    Mobile Identity - IMSI (001010123456789)
        Length: 8
        0000 .... :  Identity Digit 1: 0
        .... 1... = Odd/even indication: Odd number of identity digits (1)
        .... .001 = Mobile Identity Type: IMSI (1)
        BCD Digits: 001010123456789
    Routing area identification: 1-1-5-5
        Mobile Country Code (MCC): Unknown (1)
        Mobile network code (MNC): 1
    MS Radio Access Capability
        Length: 6
        MS RA capability 1
            Access Technology Type: (0) GSM P
            Length: 0x20 bits (32)
            RF Power Capability, GMSK Power Class: (0) Not specified
            A5 Bits: (1) A5 bits follows
            A5/1: (0) encryption algorithm not available
            A5/2: (0) encryption algorithm not available
            A5/3: (0) encryption algorithm not available
            A5/4: (0) encryption algorithm not available
            A5/5: (0) encryption algorithm not available
            A5/6: (0) encryption algorithm not available
            A5/7: (0) encryption algorithm not available
            Controlled early Classmark Sending: (0) controlled early Classmark
Sending option is not implemented
            Pseudo Synchronisation: (0) PS capability not present
            Voice Group Call Service: (0) no VGCS capability or no
notifications wanted
            Voice Broadcast Service: (0) no VBS capability or no notifications
wanted
            Multislot capability: (1) Multislot capability struct available
            HSCSD multislot class: (0) Bits are not available
            GPRS multislot class: (0) Bits are not available
            SMS/SM values: (0) Bits are not available
            ECSD multislot class: (0) Bits are not available
            EGPRS multislot class: (0) Bits are not available
            DTM GPRS Multi Slot Class: (0) Bits are not available
            8PSK Power Capability: (0) Bits are not available
            COMPACT Interference Measurement Capability: (0) COMPACT
Interference Measurement Capability is not implemented
            Revision Level Indicator: (1) The ME is Release 99 onwards
            UMTS FDD Radio Access Technology Capability: (1) UMTS FDD supported
            UMTS 3.84 Mcps TDD Radio Access Technology Capability: (0) UMTS
3.84 Mcps TDD not supported
            CDMA 2000 Radio Access Technology Capability: (0) CDMA 2000 not
supported
            UMTS 1.28 Mcps TDD Radio Access Technology Capability: (0) UMTS
1.28 Mcps TDD not supported
            GERAN Feature Package 1: (0) GERAN feature package 1 not supported
            Extended DTM (E)GPRS Multi Slot Class: (0) Bits are not available
            Modulation based multislot class support: (0) Modulation based
multislot class not supported
    P-TMSI Signature - Old P-TMSI Signature
        Element ID: 25
        P-TMSI Signature: 0x000000
    TMSI Status
        1001 .... :  Element ID
        TMSI Status: (0) no valid TMSI available
    Extraneous Data

The "Extraneous Data" indication should not be printed as the GMM message
finishes with the TMSI Status field (0x90).

This occurs because the de_gmm_tmsi_stat() function (packet-gsm_a_gm.c file)
does not update the curr_offset variable.

When curr_offset is properly incremented (see attached patch), the "Extraneous
Data" text disappears.


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