diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-20 08:41:24 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-20 13:59:14 +0200 |
commit | 5d0e56f722ce77ed29226c85e93dd09c9184f97e (patch) | |
tree | 51a3767c861603d1e317053ec5687cced1c86e21 /openbsc/include/openbsc/gsm_04_08.h | |
parent | d1862d7cf98b984407d8533ac68b0ae85cfbf9c7 (diff) |
[gsm48] Introduce a gsm48_generate_mid_from_imsi method
Prefix generate_mid_from_tmsi with a gsm48_, create a new method
to binary encode the imsi. Add a unit test for parsing and decoding.
The implementation can parse the data it generated and the
last octet seems to be filled with the end mark.
Diffstat (limited to 'openbsc/include/openbsc/gsm_04_08.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_04_08.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gsm_04_08.h b/openbsc/include/openbsc/gsm_04_08.h index 8f0e4658c..6f367864f 100644 --- a/openbsc/include/openbsc/gsm_04_08.h +++ b/openbsc/include/openbsc/gsm_04_08.h @@ -708,7 +708,8 @@ int gsm48_tx_mm_auth_req(struct gsm_lchan *lchan, u_int8_t *rand); int gsm48_tx_mm_auth_rej(struct gsm_lchan *lchan); struct msgb *gsm48_msgb_alloc(void); int gsm48_sendmsg(struct msgb *msg, struct gsm_trans *trans); -int generate_mid_from_tmsi(u_int8_t *buf, u_int32_t tmsi); +int gsm48_generate_mid_from_tmsi(u_int8_t *buf, u_int32_t tmsi); +int gsm48_generate_mid_from_imsi(u_int8_t *buf, const char* imsi); int gsm48_mi_to_string(char *string, const int str_len, const u_int8_t *mi, const int mi_len); int gsm48_send_rr_release(struct gsm_lchan *lchan); |