aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-05-15 14:48:04 +0200
committerStefan Sperling <ssperling@sysmocom.de>2018-05-15 18:46:25 +0200
commit60af0c888fb69b8f8dc75e41a1bf96309b6f0ea6 (patch)
tree169fcfd9ac760635e217abf5def8e44289fa313d /include/osmocom
parentcb8c75bba030c7ab9f2e49b2f40292a1738f3220 (diff)
add a test; set lu expiry timestampstsp/lu_expire
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/msc/gsm_subscriber.h1
-rw-r--r--include/osmocom/msc/vlr.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/msc/gsm_subscriber.h b/include/osmocom/msc/gsm_subscriber.h
index 16e1037c0..50b4a233b 100644
--- a/include/osmocom/msc/gsm_subscriber.h
+++ b/include/osmocom/msc/gsm_subscriber.h
@@ -18,6 +18,7 @@
/* gprs_sgsn.h defines additional flags including and above bit 16 (0x10000) */
#define GSM_SUBSCRIBER_NO_EXPIRATION 0x0
+#define GSM_SUBSCRIBER_LU_EXPIRATION_INTERVAL 60 /* in seconds */
enum gsm_subscriber_field {
GSM_SUBSCRIBER_IMSI,
diff --git a/include/osmocom/msc/vlr.h b/include/osmocom/msc/vlr.h
index 0a9ef6fb5..c647ddc4c 100644
--- a/include/osmocom/msc/vlr.h
+++ b/include/osmocom/msc/vlr.h
@@ -148,6 +148,7 @@ struct vlr_subscr {
struct osmo_fsm_inst *proc_arq_fsm;
bool lu_complete;
+ time_t expire_lu;
void *msc_conn_ref;
@@ -237,6 +238,7 @@ struct vlr_instance {
struct llist_head operations;
struct gsup_client *gsup_client;
struct vlr_ops ops;
+ struct osmo_timer_list lu_expire_timer;
struct {
bool retrieve_imeisv_early;
bool retrieve_imeisv_ciphered;
@@ -379,6 +381,7 @@ void vlr_subscr_cancel_attach_fsm(struct vlr_subscr *vsub,
enum osmo_fsm_term_cause fsm_cause,
uint8_t gsm48_cause);
+void vlr_subscr_enable_expire_lu(struct vlr_subscr *vsub);
/* Process Acccess Request FSM */