From a1c4f765eca695bf3d9c41d741bcab81989c8d48 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 1 May 2010 11:59:42 +0200 Subject: import gsm48_parse_ra() and gprs_tlli_type() from openbsc --- include/osmocore/protocol/gsm_04_08.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/osmocore/protocol') diff --git a/include/osmocore/protocol/gsm_04_08.h b/include/osmocore/protocol/gsm_04_08.h index 47b98b29..1a112a08 100644 --- a/include/osmocore/protocol/gsm_04_08.h +++ b/include/osmocore/protocol/gsm_04_08.h @@ -735,10 +735,17 @@ enum gsm48_bcap_rrq { GSM48_BCAP_RRQ_DUAL_FR = 3, }; - #define GSM48_TMSI_LEN 5 #define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2) #define GSM48_MI_SIZE 32 +/* Chapter 10.4.4.15 */ +struct gsm48_ra_id { + uint8_t digits[3]; /* MCC + MNC BCD digits */ + uint16_t lac; /* Location Area Code */ + uint8_t rac; /* Routing Area Code */ +} __attribute__ ((packed)); + + #endif /* PROTO_GSM_04_08_H */ -- cgit v1.2.3