ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 1924] unable to decode the MTP3 - SCCP - TCAP - CAP HexDum

Date: Tue, 23 Oct 2007 08:53:58 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1924





------- Comment #11 from anders.broman@xxxxxxxxxxxx  2007-10-23 08:53 GMT -------
To me it looks like the Extension container is wrongly encoded:
This is the Extension container bytes:
0000   a0 2a 04 28 58 59 5a 20 58 59 58 00 00 00 00 00  .*.(XYZ XYX.....
0010   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0020   00 00 00 00 00 00 00 00 00 00 00 00              ............
They decode as:

A0
            extensionContainer
                10.. .... = Class: CONTEXT (2)
                ..1. .... = P/C: Constructed Encoding
                ...0 0000 = Tag: 0
2A
                Length: 42
Then privateExtensionList Should follow
30
                privateExtensionList: 1 item
                    Item
                        00.. .... = Class: UNIVERSAL (0)
                        ..1. .... = P/C: Constructed Encoding
                        ...1 0000 = Tag: SEQUENCE (16)
But insted we have
04              OctetString
28              Length: 40 

This is the relevant ASN1 code:
MAP-EXTENSION  ::= CLASS {
        &ExtensionType                          OPTIONAL,
        &extensionId    OBJECT IDENTIFIER }
        -- The length of the Object Identifier shall not exceed 16 octets and
the
        -- number of components of the Object Identifier shall not exceed 16

-- data types

ExtensionContainer ::= SEQUENCE {
        privateExtensionList    [0]PrivateExtensionList OPTIONAL, 
        pcs-Extensions  [1]PCS-Extensions       OPTIONAL,
        ...}

SLR-ArgExtensionContainer ::= SEQUENCE {
        privateExtensionList    [0]PrivateExtensionList OPTIONAL, 
        slr-Arg-PCS-Extensions  [1]SLR-Arg-PCS-Extensions       OPTIONAL,
        ...}

PrivateExtensionList ::= SEQUENCE SIZE (1..maxNumOfPrivateExtensions) OF
                                PrivateExtension

PrivateExtension ::= SEQUENCE {
        extId           MAP-EXTENSION.&extensionId
                                ({ExtensionSet}),
        extType         MAP-EXTENSION.&ExtensionType
                                ({ExtensionSet}{@extId})        OPTIONAL}

maxNumOfPrivateExtensions  INTEGER ::= 10

ExtensionSet            MAP-EXTENSION ::=
                {...
                 -- ExtensionSet is the set of all defined private extensions
        }
        -- Unsupported private extensions shall be discarded if received.


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