/* * SPDX-License-Identifier: LicenseRef-CSSL-1.0 */ #include #include #include #include "ProtocolDiscriminator.h" #include "SecurityHeaderType.h" #include "MessageType.h" #include "MobileIdentity.h" #ifndef IDENTITY_RESPONSE_H_ #define IDENTITY_RESPONSE_H_ /* Minimum length macro. Formed by minimum length of each mandatory field */ #define IDENTITY_RESPONSE_MINIMUM_LENGTH ( \ MOBILE_IDENTITY_MINIMUM_LENGTH ) /* Maximum length macro. Formed by maximum length of each field */ #define IDENTITY_RESPONSE_MAXIMUM_LENGTH ( \ MOBILE_IDENTITY_MAXIMUM_LENGTH ) /* * Message name: Identity response * Description: This message is sent by the UE to the network in response to an IDENTITY REQUEST message and provides the requested identity. See tableĀ 8.2.19.1. * Significance: dual * Direction: UE to network */ typedef struct identity_response_msg_tag { /* Mandatory fields */ ProtocolDiscriminator protocoldiscriminator:4; SecurityHeaderType securityheadertype:4; MessageType messagetype; MobileIdentity mobileidentity; } identity_response_msg; int decode_identity_response(identity_response_msg *identityresponse, uint8_t *buffer, uint32_t len); int encode_identity_response(identity_response_msg *identityresponse, uint8_t *buffer, uint32_t len); #endif /* ! defined(IDENTITY_RESPONSE_H_) */