|
|
@ -52,7 +52,6 @@ const uint8_t GTPC_V2 = 2;
|
|
|
|
* n+2 | Sequence |
|
|
|
|
* n+2 | Sequence |
|
|
|
|
* n+3 | Spare |
|
|
|
|
* n+3 | Spare |
|
|
|
|
***************************************************************************/
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct gtpc_header
|
|
|
|
typedef struct gtpc_header
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint8_t version;
|
|
|
|
uint8_t version;
|
|
|
@ -69,13 +68,14 @@ const uint8_t GTPC_V2 = 2;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Union that hold the different structures for the possible message types.
|
|
|
|
* Union that hold the different structures for the possible message types.
|
|
|
|
***************************************************************************/
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
typedef union gtpc_msg_choice
|
|
|
|
typedef union gtpc_msg_choice
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct gtpc_create_session_request create_session_request;
|
|
|
|
struct gtpc_create_session_request create_session_request;
|
|
|
|
struct gtpc_create_session_response create_session_response;
|
|
|
|
struct gtpc_create_session_response create_session_response;
|
|
|
|
struct gtpc_modify_bearer_request modify_bearer_request;
|
|
|
|
struct gtpc_modify_bearer_request modify_bearer_request;
|
|
|
|
struct gtpc_modify_bearer_response modify_bearer_response;
|
|
|
|
struct gtpc_modify_bearer_response modify_bearer_response;
|
|
|
|
|
|
|
|
struct gtpc_release_access_bearers_request release_access_bearers_request;
|
|
|
|
|
|
|
|
struct gtpc_release_access_bearers_response release_access_bearers_response;
|
|
|
|
struct gtpc_delete_session_request delete_session_request;
|
|
|
|
struct gtpc_delete_session_request delete_session_request;
|
|
|
|
struct gtpc_delete_session_response delete_session_response;
|
|
|
|
struct gtpc_delete_session_response delete_session_response;
|
|
|
|
}gtpc_msg_choice_t;
|
|
|
|
}gtpc_msg_choice_t;
|
|
|
@ -88,15 +88,10 @@ typedef union gtpc_msg_choice
|
|
|
|
* of one GTP-C header and one union of structures, which can hold
|
|
|
|
* of one GTP-C header and one union of structures, which can hold
|
|
|
|
* all the possible GTP-C messages
|
|
|
|
* all the possible GTP-C messages
|
|
|
|
***************************************************************************/
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct gtpc_pdu
|
|
|
|
typedef struct gtpc_pdu
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct gtpc_header header;
|
|
|
|
struct gtpc_header header;
|
|
|
|
union gtpc_msg_choice choice;
|
|
|
|
union gtpc_msg_choice choice;
|
|
|
|
}gtpc_pdu_t;
|
|
|
|
}gtpc_pdu_t;
|
|
|
|
|
|
|
|
}//namespace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|