summaryrefslogblamecommitdiff
path: root/external/construct/protocols/layer2/mtp2.py
blob: 1cbe3a01303c61bebb26cf12d1f500d7769f6d0d (plain) (tree)




















                                             
"""
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"),
)