summaryrefslogtreecommitdiff
path: root/external/construct/protocols/layer2/mtp2.py
blob: 1cbe3a01303c61bebb26cf12d1f500d7769f6d0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Message Transport Part 2 (SS7 protocol stack)
(untested)
"""
from construct import *


mtp2_header = BitStruct("mtp2_header",
    Octet("flag1"),
    Bits("bsn", 7),
    Bit("bib"),
    Bits("fsn", 7),
    Bit("sib"),
    Octet("length"),
    Octet("service_info"),
    Octet("signalling_info"),
    Bits("crc", 16),
    Octet("flag2"),
)