diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-01 07:26:59 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-17 09:52:42 +0200 |
commit | 1494a768c14295a63cbf59f729dcf91a8b4d22ba (patch) | |
tree | 3a2c2fd3dbc862471423f5a1e2d51544e67199fe /openbsc/include/openbsc/gsm_04_08.h | |
parent | 93d4394d1d0e14a71e6cead8a895907c92cf7784 (diff) |
[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.
Diffstat (limited to 'openbsc/include/openbsc/gsm_04_08.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_04_08.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |