|
|
|
@ -2482,14 +2482,17 @@ LIBLTE_ERROR_ENUM liblte_mme_unpack_transaction_identifier_ie(uint8
|
|
|
|
|
Document Reference: 24.301 v10.2.0 Section 9.1
|
|
|
|
|
*********************************************************************/
|
|
|
|
|
// Defines
|
|
|
|
|
//Protocol Descriptor
|
|
|
|
|
#define LIBLTE_MME_PD_EPS_SESSION_MANAGEMENT 0x2
|
|
|
|
|
#define LIBLTE_MME_PD_EPS_MOBILITY_MANAGEMENT 0x7
|
|
|
|
|
//Header Type
|
|
|
|
|
#define LIBLTE_MME_SECURITY_HDR_TYPE_PLAIN_NAS 0x0
|
|
|
|
|
#define LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY 0x1
|
|
|
|
|
#define LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY_AND_CIPHERED 0x2
|
|
|
|
|
#define LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY_WITH_NEW_EPS_SECURITY_CONTEXT 0x3
|
|
|
|
|
#define LIBLTE_MME_SECURITY_HDR_TYPE_INTEGRITY_AND_CIPHERED_WITH_NEW_EPS_SECURITY_CONTEXT 0x4
|
|
|
|
|
#define LIBLTE_MME_SECURITY_HDR_TYPE_SERVICE_REQUEST 0xC
|
|
|
|
|
//Message Type
|
|
|
|
|
#define LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST 0x41
|
|
|
|
|
#define LIBLTE_MME_MSG_TYPE_ATTACH_ACCEPT 0x42
|
|
|
|
|
#define LIBLTE_MME_MSG_TYPE_ATTACH_COMPLETE 0x43
|
|
|
|
@ -2543,6 +2546,67 @@ LIBLTE_ERROR_ENUM liblte_mme_unpack_transaction_identifier_ie(uint8
|
|
|
|
|
#define LIBLTE_MME_MSG_TYPE_ESM_INFORMATION_RESPONSE 0xDA
|
|
|
|
|
#define LIBLTE_MME_MSG_TYPE_NOTIFICATION 0xDB
|
|
|
|
|
#define LIBLTE_MME_MSG_TYPE_ESM_STATUS 0xE8
|
|
|
|
|
const char* liblte_nas_msg_type_to_string(int code)
|
|
|
|
|
{
|
|
|
|
|
switch(code)
|
|
|
|
|
{
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ATTACH_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ATTACH_ACCEPT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ATTACH_COMPLETE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ATTACH_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_DETACH_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_DETACH_ACCEPT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_TRACKING_AREA_UPDATE_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_TRACKING_AREA_UPDATE_ACCEPT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_TRACKING_AREA_UPDATE_COMPLETE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_TRACKING_AREA_UPDATE_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_EXTENDED_SERVICE_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_SERVICE_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_GUTI_REALLOCATION_COMMAND);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_GUTI_REALLOCATION_COMPLETE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_AUTHENTICATION_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_AUTHENTICATION_RESPONSE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_AUTHENTICATION_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_AUTHENTICATION_FAILURE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_IDENTITY_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_IDENTITY_RESPONSE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_SECURITY_MODE_COMMAND);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_SECURITY_MODE_COMPLETE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_SECURITY_MODE_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_EMM_STATUS);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_EMM_INFORMATION);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_DOWNLINK_NAS_TRANSPORT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_UPLINK_NAS_TRANSPORT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_CS_SERVICE_NOTIFICATION);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_DOWNLINK_GENERIC_NAS_TRANSPORT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_UPLINK_GENERIC_NAS_TRANSPORT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ACTIVATE_DEFAULT_EPS_BEARER_CONTEXT_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ACTIVATE_DEFAULT_EPS_BEARER_CONTEXT_ACCEPT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ACTIVATE_DEFAULT_EPS_BEARER_CONTEXT_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ACTIVATE_DEDICATED_EPS_BEARER_CONTEXT_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ACTIVATE_DEDICATED_EPS_BEARER_CONTEXT_ACCEPT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ACTIVATE_DEDICATED_EPS_BEARER_CONTEXT_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_MODIFY_EPS_BEARER_CONTEXT_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_MODIFY_EPS_BEARER_CONTEXT_ACCEPT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_MODIFY_EPS_BEARER_CONTEXT_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_DEACTIVATE_EPS_BEARER_CONTEXT_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_DEACTIVATE_EPS_BEARER_CONTEXT_ACCEPT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_PDN_CONNECTIVITY_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_PDN_CONNECTIVITY_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_PDN_DISCONNECT_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_PDN_DISCONNECT_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_BEARER_RESOURCE_ALLOCATION_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_BEARER_RESOURCE_ALLOCATION_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_BEARER_RESOURCE_MODIFICATION_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_BEARER_RESOURCE_MODIFICATION_REJECT);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ESM_INFORMATION_REQUEST);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ESM_INFORMATION_RESPONSE);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_NOTIFICATION);
|
|
|
|
|
LIBLTE_CASE_STR(LIBLTE_MME_MSG_TYPE_ESM_STATUS);
|
|
|
|
|
default: return "NAS Message Type Unknown";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Enums
|
|
|
|
|
// Structs
|
|
|
|
|
// Functions
|
|
|
|
|