From 9a13903a2f7d3a65fdf15a65fb59cccd622e2066 Mon Sep 17 00:00:00 2001 From: Livio Recchia Date: Mon, 10 Feb 2020 23:06:34 +0100 Subject: Initial commit --- external/construct/protocols/layer2/mtp2.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 external/construct/protocols/layer2/mtp2.py (limited to 'external/construct/protocols/layer2/mtp2.py') diff --git a/external/construct/protocols/layer2/mtp2.py b/external/construct/protocols/layer2/mtp2.py new file mode 100644 index 0000000..1cbe3a0 --- /dev/null +++ b/external/construct/protocols/layer2/mtp2.py @@ -0,0 +1,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"), +) + + -- cgit v1.2.3-70-g09d2