aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gprs_sgsn.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-12-01 12:33:33 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-08 10:50:52 +0100
commitbd0cf1190a839bbaad38b86157eaa13b7c3f7ec4 (patch)
tree18a75a5c4687476ee4f64c113665108633a3a229 /openbsc/include/openbsc/gprs_sgsn.h
parent65d8273bf342944db12fecff9140bf4b9d3e6ad2 (diff)
sgsn: Change Auth&Ciph timer handling
Currently mmctx_timer_start is called from within gsm48_tx_gmm_auth_ciph_req which differs from the way e.g. the identification procedure is implemented. It also makes it more difficult to restart the procedure after timeout, which is not implemented yet. In addition, the timer is not properly stopped when an AUTH & CIPH response is received. This patch removes this timer start from gsm48_tx_gmm_auth_ciph_req, adds the retransmission of Auth & Ciph requests to the timer callback function, and properly stops the timer in gsm48_rx_gmm_auth_ciph_resp. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gprs_sgsn.h')
-rw-r--r--openbsc/include/openbsc/gprs_sgsn.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h
index 4572ac23d..1ffeb9fe7 100644
--- a/openbsc/include/openbsc/gprs_sgsn.h
+++ b/openbsc/include/openbsc/gprs_sgsn.h
@@ -10,6 +10,8 @@
#include <osmocom/crypt/gprs_cipher.h>
+#include <openbsc/gsm_data.h>
+
#define GSM_IMSI_LENGTH 17
#define GSM_IMEI_LENGTH 17
#define GSM_EXTENSION_LENGTH 15
@@ -84,7 +86,8 @@ struct sgsn_mm_ctx {
uint32_t sac_age;/* Iu: Service Area Code age */
/* VLR number */
uint32_t new_sgsn_addr;
- /* Authentication Triplets */
+ /* Authentication Triplet */
+ struct gsm_auth_tuple auth_triplet;
/* Kc */
/* Iu: CK, IK, KSI */
/* CKSN */