|
|
@ -284,7 +284,7 @@ s1ap_nas_transport::handle_uplink_nas_transport(LIBLTE_S1AP_MESSAGE_UPLINKNASTRA
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(sec_hdr_type == LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY || sec_hdr_type == LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY_AND_CIPHERED)
|
|
|
|
else if(sec_hdr_type == LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY || sec_hdr_type == LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY_AND_CIPHERED)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//Integrity protected NAS message, possibly chiphered.
|
|
|
|
//Integrity protected NAS message, possibly ciphered.
|
|
|
|
emm_ctx->security_ctxt.ul_nas_count++;
|
|
|
|
emm_ctx->security_ctxt.ul_nas_count++;
|
|
|
|
mac_valid = integrity_check(emm_ctx,nas_msg);
|
|
|
|
mac_valid = integrity_check(emm_ctx,nas_msg);
|
|
|
|
if(!mac_valid){
|
|
|
|
if(!mac_valid){
|
|
|
@ -1145,8 +1145,8 @@ s1ap_nas_transport::handle_esm_information_response(srslte::byte_buffer_t *nas_m
|
|
|
|
m_s1ap_log->info("ESM Info: EPS bearer id %d\n",esm_info_resp.eps_bearer_id);
|
|
|
|
m_s1ap_log->info("ESM Info: EPS bearer id %d\n",esm_info_resp.eps_bearer_id);
|
|
|
|
if(esm_info_resp.apn_present)
|
|
|
|
if(esm_info_resp.apn_present)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_s1ap_log->info("ESM Info: APN %d\n",esm_info_resp.eps_bearer_id);
|
|
|
|
m_s1ap_log->info("ESM Info: APN %s\n",esm_info_resp.apn.apn.c_str());
|
|
|
|
m_s1ap_log->console("ESM Info: APN %d\n",esm_info_resp.eps_bearer_id);
|
|
|
|
m_s1ap_log->console("ESM Info: APN %s\n",esm_info_resp.apn.apn.c_str());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(esm_info_resp.protocol_cnfg_opts_present)
|
|
|
|
if(esm_info_resp.protocol_cnfg_opts_present)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1683,10 +1683,10 @@ s1ap_nas_transport::pack_esm_information_request(srslte::byte_buffer_t *reply_ms
|
|
|
|
dw_nas->SubscriberProfileIDforRFP_present=false;
|
|
|
|
dw_nas->SubscriberProfileIDforRFP_present=false;
|
|
|
|
|
|
|
|
|
|
|
|
LIBLTE_MME_ESM_INFORMATION_REQUEST_MSG_STRUCT esm_info_req;
|
|
|
|
LIBLTE_MME_ESM_INFORMATION_REQUEST_MSG_STRUCT esm_info_req;
|
|
|
|
esm_info_req.eps_bearer_id=0;
|
|
|
|
esm_info_req.eps_bearer_id = 0;
|
|
|
|
esm_info_req.proc_transaction_id = ue_emm_ctx->procedure_transaction_id;
|
|
|
|
esm_info_req.proc_transaction_id = ue_emm_ctx->procedure_transaction_id;
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t sec_hdr_type=2;
|
|
|
|
uint8_t sec_hdr_type = LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY_AND_CIPHERED;
|
|
|
|
|
|
|
|
|
|
|
|
ue_emm_ctx->security_ctxt.dl_nas_count++;
|
|
|
|
ue_emm_ctx->security_ctxt.dl_nas_count++;
|
|
|
|
|
|
|
|
|
|
|
|