diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-08-11 19:12:24 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-24 16:16:40 +0200 |
commit | 0d37671824a50ab0924298284cfd1eb730dbb761 (patch) | |
tree | e911fae9a0ac8b1f950d0f211e0020b72e2db833 /openbsc/include/openbsc/gb_proxy.h | |
parent | 643d5228edd71f50a2ebb27854a4d5f3ff3b2835 (diff) |
gbproxy: Use different TLLI/P-TMSI for BSS and SGSN
This patch modifies gbprox_make_bss_ptmsi() to generate a new P-TMSI
when patch_ptmsi is set in the configuration instead of using the
P-TMSI assigned by the SGSN. It modifies gbprox_make_sgsn_tlli() to
either use a foreign TLLI based on the SGSN side P-TMSI or (if there
is none) generate a random TLLI if patch_ptmsi is set. Otherwise, the
TLLI used by the BSS is used.
The seeds for the pseudo-random sequences sre set based on time
initially. Note that these are neither cryptographically safe nor
protected against collisions.
Ticket: OW#1259
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gb_proxy.h')
-rw-r--r-- | openbsc/include/openbsc/gb_proxy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h index 468228043..e7d1b1cbe 100644 --- a/openbsc/include/openbsc/gb_proxy.h +++ b/openbsc/include/openbsc/gb_proxy.h @@ -49,6 +49,10 @@ struct gbproxy_config { /* IMSI checking/matching */ int check_imsi; regex_t imsi_re_comp; + + /* Used to generate identifiers */ + unsigned bss_ptmsi_state; + unsigned sgsn_tlli_state; }; struct gbproxy_patch_state { |