diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-01 11:59:42 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-01 12:00:21 +0200 |
commit | a1c4f765eca695bf3d9c41d741bcab81989c8d48 (patch) | |
tree | 06670c450ceb9b71b031f67e8e0b7e1b05024f68 /include/osmocore/gsm48.h | |
parent | 5ba4dc171b0d86ae3032c3732334481d9d399188 (diff) |
import gsm48_parse_ra() and gprs_tlli_type() from openbsc
Diffstat (limited to 'include/osmocore/gsm48.h')
-rw-r--r-- | include/osmocore/gsm48.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/osmocore/gsm48.h b/include/osmocore/gsm48.h index e3a1defa..9015c25b 100644 --- a/include/osmocore/gsm48.h +++ b/include/osmocore/gsm48.h @@ -4,6 +4,14 @@ #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; const char *gsm48_cc_state_name(uint8_t state); const char *gsm48_cc_msg_name(uint8_t msgtype); @@ -18,4 +26,7 @@ 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); + #endif |