|
|
@ -812,6 +812,11 @@ void nas::parse_emm_information(uint32_t lcid, byte_buffer_t *pdu) {
|
|
|
|
void nas::send_attach_request() {
|
|
|
|
void nas::send_attach_request() {
|
|
|
|
LIBLTE_MME_ATTACH_REQUEST_MSG_STRUCT attach_req;
|
|
|
|
LIBLTE_MME_ATTACH_REQUEST_MSG_STRUCT attach_req;
|
|
|
|
byte_buffer_t *msg = pool_allocate;
|
|
|
|
byte_buffer_t *msg = pool_allocate;
|
|
|
|
|
|
|
|
if (!msg) {
|
|
|
|
|
|
|
|
nas_log->error("Fatal Error: Couldn't allocate PDU in send_attach_request().\n");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
u_int32_t i;
|
|
|
|
u_int32_t i;
|
|
|
|
|
|
|
|
|
|
|
|
attach_req.eps_attach_type = LIBLTE_MME_EPS_ATTACH_TYPE_EPS_ATTACH;
|
|
|
|
attach_req.eps_attach_type = LIBLTE_MME_EPS_ATTACH_TYPE_EPS_ATTACH;
|
|
|
@ -913,6 +918,10 @@ void nas::gen_pdn_connectivity_request(LIBLTE_BYTE_MSG_STRUCT *msg) {
|
|
|
|
|
|
|
|
|
|
|
|
void nas::send_security_mode_reject(uint8_t cause) {
|
|
|
|
void nas::send_security_mode_reject(uint8_t cause) {
|
|
|
|
byte_buffer_t *msg = pool_allocate;
|
|
|
|
byte_buffer_t *msg = pool_allocate;
|
|
|
|
|
|
|
|
if (!msg) {
|
|
|
|
|
|
|
|
nas_log->error("Fatal Error: Couldn't allocate PDU in send_security_mode_reject().\n");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LIBLTE_MME_SECURITY_MODE_REJECT_MSG_STRUCT sec_mode_rej;
|
|
|
|
LIBLTE_MME_SECURITY_MODE_REJECT_MSG_STRUCT sec_mode_rej;
|
|
|
|
sec_mode_rej.emm_cause = cause;
|
|
|
|
sec_mode_rej.emm_cause = cause;
|
|
|
@ -928,6 +937,10 @@ void nas::send_identity_response() {}
|
|
|
|
|
|
|
|
|
|
|
|
void nas::send_service_request() {
|
|
|
|
void nas::send_service_request() {
|
|
|
|
byte_buffer_t *msg = pool_allocate;
|
|
|
|
byte_buffer_t *msg = pool_allocate;
|
|
|
|
|
|
|
|
if (!msg) {
|
|
|
|
|
|
|
|
nas_log->error("Fatal Error: Couldn't allocate PDU in send_service_request().\n");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Pack the service request message directly
|
|
|
|
// Pack the service request message directly
|
|
|
|
msg->msg[0] = (LIBLTE_MME_SECURITY_HDR_TYPE_SERVICE_REQUEST << 4) | (LIBLTE_MME_PD_EPS_MOBILITY_MANAGEMENT);
|
|
|
|
msg->msg[0] = (LIBLTE_MME_SECURITY_HDR_TYPE_SERVICE_REQUEST << 4) | (LIBLTE_MME_PD_EPS_MOBILITY_MANAGEMENT);
|
|
|
|