aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-04-20 17:28:03 +0200
committerHarald Welte <laforge@gnumonks.org>2016-05-05 18:49:27 +0200
commit0996c879255e4653740814112bf98d0ddc93100c (patch)
tree5466f06c9df1d03f9915daa56e0bfaece596be31
parent64f38c0410552e7c8ce1f12ceed8af0496d4ff01 (diff)
add new header file for TS 23.003
-rw-r--r--include/Makefile.am1
-rw-r--r--include/osmocom/gsm/protocol/gsm_23_003.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 49d1ce7..af72bfc 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -88,6 +88,7 @@ nobase_include_HEADERS = \
osmocom/gsm/protocol/gsm_08_58.h \
osmocom/gsm/protocol/gsm_09_02.h \
osmocom/gsm/protocol/gsm_12_21.h \
+ osmocom/gsm/protocol/gsm_23_003.h \
osmocom/gsm/protocol/gsm_44_318.h \
osmocom/gsm/protocol/ipaccess.h \
osmocom/gsm/protocol/smpp34_osmocom.h \
diff --git a/include/osmocom/gsm/protocol/gsm_23_003.h b/include/osmocom/gsm/protocol/gsm_23_003.h
new file mode 100644
index 0000000..a2109b6
--- /dev/null
+++ b/include/osmocom/gsm/protocol/gsm_23_003.h
@@ -0,0 +1,23 @@
+#pragma once
+
+/* Chapter 2.2 */
+#define GSM23003_IMSI_MAX_DIGITS 15
+/* Chapter 2.4 */
+#define GSM23003_TMSI_NUM_BYTES 4
+/* Chapter 2.5 */
+#define GSM23003_LMSI_NUM_BYTES 4
+/* Chapter 2.6 */
+#define GSM23003_TLLI_NUM_BYTES 4
+/* Chapter 2.7 */
+#define GSM23003_PTMSI_SIG_NUM_BYTES 3
+/* Chapter 2.8 */
+#define GSM23003_MME_CODE_NUM_BYTES 1
+#define GSM23003_MME_GROUP_NUM_BYTES 2
+#define GSM23003_MTMSI_NUM_BYTES 4
+/* Chapter 6.2.1 */
+#define GSM23003_IMEI_TAC_NUM_DIGITS 8
+#define GSM23003_IMEI_SNR_NUM_DIGITS 6
+#define GSM23003_IMEI_NUM_DIGITS (GSM23003_IMEI_TAC_NUM_DIGITS + \
+ GSM23003_IMEI_SNR_NUM_DIGITS + 1)
+#define GSM23003_IMEISV_NUM_DIGITS (GSM23003_IMEI_TAC_NUM_DIGITS + \
+ GSM23003_IMEI_SNR_NUM_DIGITS + 2)