This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/304
Add structures defining decoded TS 23.003 identities
Change-Id: I6423f8d75bb3e7aeca285854ab3232a087d62b57
---
M include/Makefile.am
A include/osmocom/gsm/gsm23003.h
2 files changed, 81 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/04/304/1
diff --git a/include/Makefile.am b/include/Makefile.am
index 2e58d7e..04a8b23 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -67,6 +67,7 @@
osmocom/gsm/gsm0502.h \
osmocom/gsm/gsm0503.h \
osmocom/gsm/gsm0808.h \
+ osmocom/gsm/gsm23003.h \
osmocom/gsm/gsm48.h \
osmocom/gsm/gsm48_ie.h \
osmocom/gsm/gsm_utils.h \
diff --git a/include/osmocom/gsm/gsm23003.h b/include/osmocom/gsm/gsm23003.h
new file mode 100644
index 0000000..29e646c
--- /dev/null
+++ b/include/osmocom/gsm/gsm23003.h
@@ -0,0 +1,80 @@
+#pragma once
+#include <stdint.h>
+
+/* 23.003 Chapter 12.1 */
+struct osmo_plmn_id {
+ uint16_t mcc;
+ uint16_t mnc;
+};
+
+/* 4.1 */
+struct osmo_location_area_id {
+ struct osmo_plmn_id plmn;
+ uint16_t lac;
+};
+
+/* 4.2 */
+struct osmo_routing_area_id {
+ struct osmo_location_area_id lac;
+ uint8_t rac;
+};
+
+/* 4.3.1 */
+struct osmo_cell_global_id {
+ struct osmo_location_area_id lai;
+ uint16_t cell_identity;
+};
+
+/* 12.5 */
+struct osmo_service_area_id {
+ struct osmo_location_area_id lai;
+ uint16_t sac;
+};
+
+/* 12.6 */
+struct osmo_shared_network_area_id {
+ struct osmo_plmn_id plmn;
+ uint32_t snac;
+};
+
+/* 5.1 */
+enum osmo_gsn_addr_type {
+ GSN_ADDR_TYPE_IPV4 = 0,
+ GSN_ADDR_TYPE_IPV6 = 1,
+};
+
+/* 5.1 */
+struct osmo_gsn_address {
+ enum osmo_gsn_addr_type type;
+ uint8_t length;
+ uint8_t addr[16];
+};
+
+/* 19.4.2.3 */
+struct osmo_tracking_area_id {
+ struct osmo_plmn_id plmn;
+ uint16_t tac;
+};
+
+struct osmo_eutran_cell_global_id {
+ struct osmo_plmn_id plmn;
+ uint32_t eci; /* FIXME */
+};
+
+/* 2.8.1 */
+struct osmo_mme_id {
+ uint16_t group_id;
+ uint8_t code;
+};
+
+/* 2.8.1 */
+struct osmo_gummei {
+ struct osmo_plmn_id plmn;
+ struct osmo_mme_id mme;
+};
+
+/* 2.8.1 */
+struct osmo_guti {
+ struct osmo_gummei gummei;
+ uint32_t mtmsi;
+};
--
To view, visit https://gerrit.osmocom.org/304
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6423f8d75bb3e7aeca285854ab3232a087d62b57
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>