summaryrefslogtreecommitdiffstats
path: root/include/osmocore
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-04 10:53:03 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-04 10:53:03 +0100
commit61e2bfc5f44267a7a3b0b25ff3ab922fca2a199c (patch)
tree9a5016ba08b68ece934f0ad6bcc75ea934181ae5 /include/osmocore
parenta73e2f9acb839a1f08d8bc5c7e6074c16f0cf1fe (diff)
import gsm48 utility functions from OpenBSC
* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi() * gsm48_cc_msg_names[]
Diffstat (limited to 'include/osmocore')
-rw-r--r--include/osmocore/gsm48.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/osmocore/gsm48.h b/include/osmocore/gsm48.h
index d0cf09d1..95963d59 100644
--- a/include/osmocore/gsm48.h
+++ b/include/osmocore/gsm48.h
@@ -1,9 +1,16 @@
#ifndef _OSMOCORE_GSM48_H
#include <osmocore/tlv.h>
+#include <osmocore/protocol/gsm_04_08.h>
extern const struct tlv_definition gsm48_att_tlvdef;
-extern const char *cc_state_names[];
+extern const char *cc_state_names[32];
+const char *gsm48_cc_msg_names[0x40];
const char *rr_cause_name(uint8_t cause);
+void gsm48_generate_lai(struct gsm48_loc_area_id *lai48, uint16_t mcc,
+ uint16_t mnc, uint16_t lac);
+int gsm48_generate_mid_from_tmsi(uint8_t *buf, uint32_t tmsi);
+int gsm48_generate_mid_from_imsi(uint8_t *buf, const char *imsi);
+
#endif