From 1494a768c14295a63cbf59f729dcf91a8b4d22ba Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 1 Aug 2009 07:26:59 +0200 Subject: [bsc] Move the GSM 04.08 helper functions to gsm_04_08_utils.c The existing gsm_04_08.c implementation is mixing BSC and MSC behavior. Move some simple parsing and generation functions over to gsm_04_08_utils.c to allow a different MSC to define the policy. --- openbsc/include/openbsc/gsm_04_08.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openbsc/include/openbsc') diff --git a/openbsc/include/openbsc/gsm_04_08.h b/openbsc/include/openbsc/gsm_04_08.h index 161364cbf..2518dfd6c 100644 --- a/openbsc/include/openbsc/gsm_04_08.h +++ b/openbsc/include/openbsc/gsm_04_08.h @@ -681,6 +681,11 @@ enum gsm48_bcap_rrq { GSM48_BCAP_RRQ_DUAL_FR = 3, }; + +#define GSM48_TMSI_LEN 5 +#define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2) + + struct msgb; struct gsm_bts; struct gsm_subscriber; @@ -718,4 +723,6 @@ int encode_bcd_number(u_int8_t *bcd_lv, u_int8_t max_len, int decode_bcd_number(char *output, int output_len, const u_int8_t *bcd_lv, int h_len); +extern const char *gsm0408_cc_msg_names[]; + #endif -- cgit v1.2.3