summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/include/osmocore/gsm48.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/libosmocore/include/osmocore/gsm48.h')
-rw-r--r--src/shared/libosmocore/include/osmocore/gsm48.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/shared/libosmocore/include/osmocore/gsm48.h b/src/shared/libosmocore/include/osmocore/gsm48.h
index 22749a83..ffe0399b 100644
--- a/src/shared/libosmocore/include/osmocore/gsm48.h
+++ b/src/shared/libosmocore/include/osmocore/gsm48.h
@@ -1,9 +1,18 @@
#ifndef _OSMOCORE_GSM48_H
+#define _OSMOCORE_GSM48_H
#include <osmocore/tlv.h>
#include <osmocore/protocol/gsm_04_08.h>
#include <osmocore/gsm48_ie.h>
+/* A parsed GPRS routing area */
+struct gprs_ra_id {
+ uint16_t mnc;
+ uint16_t mcc;
+ uint16_t lac;
+ uint8_t rac;
+};
+
extern const struct tlv_definition gsm48_att_tlvdef;
extern const struct tlv_definition gsm48_rr_att_tlvdef;
extern const struct tlv_definition gsm48_mm_att_tlvdef;
@@ -20,4 +29,8 @@ int gsm48_generate_mid_from_imsi(uint8_t *buf, const char *imsi);
int gsm48_mi_to_string(char *string, const int str_len,
const uint8_t *mi, const int mi_len);
+/* Parse Routeing Area Identifier */
+void gsm48_parse_ra(struct gprs_ra_id *raid, const uint8_t *buf);
+int gsm48_construct_ra(uint8_t *buf, const struct gprs_ra_id *raid);
+
#endif