summaryrefslogtreecommitdiffstats
path: root/include/osmocore/gsm_utils.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-01 11:59:42 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-01 12:00:21 +0200
commita1c4f765eca695bf3d9c41d741bcab81989c8d48 (patch)
tree06670c450ceb9b71b031f67e8e0b7e1b05024f68 /include/osmocore/gsm_utils.h
parent5ba4dc171b0d86ae3032c3732334481d9d399188 (diff)
import gsm48_parse_ra() and gprs_tlli_type() from openbsc
Diffstat (limited to 'include/osmocore/gsm_utils.h')
-rw-r--r--include/osmocore/gsm_utils.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/osmocore/gsm_utils.h b/include/osmocore/gsm_utils.h
index 195e865c..51e9f2e6 100644
--- a/include/osmocore/gsm_utils.h
+++ b/include/osmocore/gsm_utils.h
@@ -87,5 +87,17 @@ void gsm_fn2gsmtime(struct gsm_time *time, uint32_t fn);
/* Convert from GSM time to frame number */
uint32_t gsm_gsmtime2fn(struct gsm_time *time);
+/* GSM TS 03.03 Chapter 2.6 */
+enum gprs_tlli_tyoe {
+ TLLI_LOCAL,
+ TLLI_FOREIGN,
+ TLLI_RANDOM,
+ TLLI_AUXILIARY,
+ TLLI_RESERVED,
+};
+
+/* TS 03.03 Chapter 2.6 */
+int gprs_tlli_type(uint32_t tlli);
+
void generate_backtrace();
#endif