path: root/openbsc/include/openbsc
diff options
authorJacob Erlbeck <>2014-08-08 08:37:37 +0200
committerJacob Erlbeck <>2014-08-13 10:42:27 +0200
commit7b821d031ae6ab10d001310f56d1180b6b37760d (patch)
treef8a34ce1038f0eca95f3ef615092cefbca99299d /openbsc/include/openbsc
parentaad32bccc0a031408aa369da91e5a21de660d15f (diff)
gbproxy: Don't call time() in TLLI related functions
Currently time() is called at several places to control TLLI aging. Beside calling time() more often than necessary, the decision which timesource is to be used is coded into the TLLI handling, and testing complex aging scenarios is cumbersome. This patch passes the current time as a parameter instead. The call to time() is moved to gbprox_process_bssgp_message(). Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc')
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h
index 9cd1abbb2..bc7bbc462 100644
--- a/openbsc/include/openbsc/gb_proxy.h
+++ b/openbsc/include/openbsc/gb_proxy.h
@@ -126,7 +126,7 @@ struct gbproxy_peer *gbprox_peer_by_nsei(struct gbproxy_config *cfg, uint16_t ns
struct gbproxy_tlli_info *gbprox_find_tlli_by_mi(struct gbproxy_peer *peer,
const uint8_t *mi_data, size_t mi_data_len);
void gbprox_register_tlli(struct gbproxy_peer *peer, uint32_t tlli,
- const uint8_t *imsi, size_t imsi_len);
+ const uint8_t *imsi, size_t imsi_len, time_t now);
struct gbproxy_peer *gbproxy_peer_alloc(struct gbproxy_config *cfg, uint16_t bvci);
void gbproxy_peer_free(struct gbproxy_peer *peer);