From d3469e51c1627fbb0c514315479948bd3cdbebe2 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 22 Jun 2018 19:06:57 +0100 Subject: [PATCH] Starting to play with key set identifier. --- srsepc/src/mme/s1ap_nas_transport.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srsepc/src/mme/s1ap_nas_transport.cc b/srsepc/src/mme/s1ap_nas_transport.cc index 6e407cbbd..3f5ddd53a 100644 --- a/srsepc/src/mme/s1ap_nas_transport.cc +++ b/srsepc/src/mme/s1ap_nas_transport.cc @@ -1450,7 +1450,9 @@ s1ap_nas_transport::pack_authentication_request(srslte::byte_buffer_t *reply_msg memcpy(auth_req.autn , autn, 16); memcpy(auth_req.rand, rand, 16); auth_req.nas_ksi.tsc_flag=LIBLTE_MME_TYPE_OF_SECURITY_CONTEXT_FLAG_NATIVE; - auth_req.nas_ksi.nas_ksi=0; + static uint8_t nas_ksi_tmp = 0; + auth_req.nas_ksi.nas_ksi = nas_ksi_tmp++; + //auth_req.nas_ksi.nas_ksi = 0; LIBLTE_ERROR_ENUM err = liblte_mme_pack_authentication_request_msg(&auth_req, (LIBLTE_BYTE_MSG_STRUCT *) nas_buffer); if(err != LIBLTE_SUCCESS)