aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-08-20 20:04:19 +0200
committerlaforge <laforge@osmocom.org>2020-08-20 20:07:03 +0000
commit161d42a61990e465459c0c58c6259c7a0de25a7d (patch)
tree915ea8e672b06d1494bb3bc5f927d6d652c530da /include/osmocom/core
parent62be97e89d704e97cd8c56249bf6c368f352b70d (diff)
gsmtap: Add definitions for E1/T1 payload (LAPD, TRAU, FR) in GSMTAP
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/gsmtap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmocom/core/gsmtap.h b/include/osmocom/core/gsmtap.h
index 82e95254..11b2d137 100644
--- a/include/osmocom/core/gsmtap.h
+++ b/include/osmocom/core/gsmtap.h
@@ -48,6 +48,7 @@
#define GSMTAP_TYPE_OSMOCORE_LOG 0x10 /* libosmocore logging */
#define GSMTAP_TYPE_QC_DIAG 0x11 /* Qualcomm DIAG frame */
#define GSMTAP_TYPE_LTE_NAS 0x12 /* LTE Non-Access Stratum */
+#define GSMTAP_TYPE_E1T1 0x13 /* E1/T1 Lines */
/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
@@ -171,6 +172,14 @@
#define GSMTAP_LTE_CH_DTCH 0x06
#define GSMTAP_LTE_CH_MTCH 0x07
+/* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */
+/* sub-types for TYPE_E1T1 */
+#define GSMTAP_E1T1_LAPD 0x01 /* Q.921 LAPD */
+#define GSMTAP_E1T1_FR 0x02 /* Frame Relay */
+#define GSMTAP_E1T1_RAW 0x03 /* raw/transparent B-channel */
+#define GSMTAP_E1T1_TRAU16 0x04 /* 16k TRAU frames; sub-slot 0-3 */
+#define GSMTAP_E1T1_TRAU8 0x05 /* 8k TRAU frames; sub-slot 0-7 */
+
/* flags for the ARFCN */
#define GSMTAP_ARFCN_F_PCS 0x8000
#define GSMTAP_ARFCN_F_UPLINK 0x4000