2017-03-12 01:23:49 +00:00
|
|
|
#include "core_pkbuf.h"
|
|
|
|
#include "core_lib.h"
|
|
|
|
#include "core_debug.h"
|
2017-03-25 03:10:08 +00:00
|
|
|
#include "core_net.h"
|
2017-03-12 01:23:49 +00:00
|
|
|
|
2017-04-06 08:10:26 +00:00
|
|
|
#include "3gpp_common.h"
|
2017-03-24 16:07:59 +00:00
|
|
|
#include "gtp_types.h"
|
|
|
|
#include "gtp_tlv.h"
|
2017-03-12 01:23:49 +00:00
|
|
|
|
2017-03-15 08:12:41 +00:00
|
|
|
#include "testutil.h"
|
|
|
|
|
2017-03-12 01:23:49 +00:00
|
|
|
static void gtp_message_test1(abts_case *tc, void *data)
|
|
|
|
{
|
2017-03-15 08:12:41 +00:00
|
|
|
status_t rv;
|
2017-03-25 16:19:44 +00:00
|
|
|
/* Create Session Request */
|
2017-03-15 08:12:41 +00:00
|
|
|
char *_payload =
|
|
|
|
"0100080055153011 340010f44c000600 9471527600414b00 0800536120009178"
|
|
|
|
"840056000d001855 f501102255f50100 019d015300030055 f501520001000657"
|
|
|
|
"0009008a80000084 0a32360a57000901 87000000000a3236 254700220005766f"
|
|
|
|
"6c7465036e673204 6d6e6574066d6e63 303130066d636335 3535046770727380"
|
|
|
|
"000100fc63000100 014f000500010000 00007f0001000048 000800000003e800"
|
|
|
|
"0007d04e001a0080 8021100100001081 0600000000830600 000000000d00000a"
|
|
|
|
"005d001f00490001 0005500016004505 0000000000000000 0000000000000000"
|
|
|
|
"0000000072000200 40005f0002005400";
|
2017-03-15 10:18:24 +00:00
|
|
|
char *_value = NULL;
|
2017-03-25 02:16:18 +00:00
|
|
|
char hexbuf[MAX_SDU_LEN];
|
|
|
|
|
2017-03-24 16:07:59 +00:00
|
|
|
gtp_create_session_request_t req;
|
2017-03-25 02:16:18 +00:00
|
|
|
gtp_uli_t uli;
|
2017-03-25 16:19:44 +00:00
|
|
|
char ulibuf[GTP_MAX_ULI_LEN];
|
|
|
|
plmn_id_t serving_network;
|
|
|
|
char apnbuf[34];
|
|
|
|
gtp_f_teid_t s11, s5;
|
|
|
|
gtp_paa_t paa;
|
|
|
|
gtp_ambr_t ambr;
|
2017-04-08 04:02:07 +00:00
|
|
|
pco_t pco;
|
|
|
|
char pcobuf[MAX_PCO_LEN];
|
2017-03-25 16:19:44 +00:00
|
|
|
gtp_bearer_qos_t bearer_qos;
|
|
|
|
char bearer_qos_buf[GTP_BEARER_QOS_LEN];
|
|
|
|
gtp_ue_timezone_t ue_timezone;
|
2017-03-25 02:16:18 +00:00
|
|
|
c_int16_t size = 0;
|
|
|
|
|
2017-03-15 08:12:41 +00:00
|
|
|
pkbuf_t *pkbuf = NULL;
|
|
|
|
|
2017-03-25 16:19:44 +00:00
|
|
|
memset(&req, 0, sizeof(gtp_create_session_request_t));
|
|
|
|
|
|
|
|
req.imsi.presence = 1;
|
2017-03-25 16:29:41 +00:00
|
|
|
req.imsi.data = (c_uint8_t *)"\x55\x15\x30\x11\x34\x00\x10\xf4";
|
2017-03-25 16:19:44 +00:00
|
|
|
req.imsi.len = 8;
|
|
|
|
|
|
|
|
req.msisdn.presence = 1;
|
2017-03-25 16:29:41 +00:00
|
|
|
req.msisdn.data = (c_uint8_t *)"\x94\x71\x52\x76\x00\x41";
|
2017-03-25 16:19:44 +00:00
|
|
|
req.msisdn.len = 6;
|
|
|
|
|
|
|
|
req.me_identity.presence = 1;
|
2017-03-25 16:29:41 +00:00
|
|
|
req.me_identity.data = (c_uint8_t *)"\x53\x61\x20\x00\x91\x78\x84\x00";
|
2017-03-25 16:19:44 +00:00
|
|
|
req.me_identity.len = 8;
|
|
|
|
|
|
|
|
memset(&uli, 0, sizeof(gtp_uli_t));
|
2017-04-11 11:44:38 +00:00
|
|
|
uli.flags.e_cgi = 1;
|
2017-03-25 16:19:44 +00:00
|
|
|
uli.flags.tai = 1;
|
|
|
|
plmn_id_build(&uli.tai.plmn_id, 555, 10, 2);
|
|
|
|
uli.tai.tac = 4130;
|
2017-04-11 11:44:38 +00:00
|
|
|
plmn_id_build(&uli.e_cgi.plmn_id, 555, 10, 2);
|
|
|
|
uli.e_cgi.cell_id = 105729;
|
2017-03-25 16:19:44 +00:00
|
|
|
req.user_location_information.presence = 1;
|
|
|
|
size = gtp_build_uli(&req.user_location_information, &uli,
|
|
|
|
ulibuf, GTP_MAX_ULI_LEN);
|
|
|
|
ABTS_INT_EQUAL(tc, 13, req.user_location_information.len);
|
|
|
|
|
|
|
|
req.serving_network.presence = 1;
|
|
|
|
req.serving_network.data = plmn_id_build(&serving_network, 555, 10, 2);
|
|
|
|
req.serving_network.len = sizeof(serving_network);
|
|
|
|
|
|
|
|
req.rat_type.presence = 1;
|
|
|
|
req.rat_type.u8 = GTP_RAT_TYPE_EUTRAN;
|
|
|
|
|
|
|
|
memset(&s11, 0, sizeof(gtp_f_teid_t));
|
|
|
|
s11.ipv4 = 1;
|
|
|
|
s11.interface_type = GTP_F_TEID_S11_MME_GTP_C;
|
|
|
|
s11.teid = htonl(0x80000084);
|
|
|
|
s11.ipv4_addr = inet_addr("10.50.54.10");
|
|
|
|
req.sender_f_teid_for_control_plane.presence = 1;
|
|
|
|
req.sender_f_teid_for_control_plane.data = &s11;
|
|
|
|
req.sender_f_teid_for_control_plane.len = GTP_F_TEID_IPV4_LEN;
|
|
|
|
|
|
|
|
memset(&s5, 0, sizeof(gtp_f_teid_t));
|
|
|
|
s5.ipv4 = 1;
|
|
|
|
s5.interface_type = GTP_F_TEID_S5_S8_PGW_GTP_C;
|
|
|
|
s5.ipv4_addr = inet_addr("10.50.54.37");
|
|
|
|
req.pgw_s5_s8_address_for_control_plane_or_pmip.presence = 1;
|
|
|
|
req.pgw_s5_s8_address_for_control_plane_or_pmip.data = &s5;
|
|
|
|
req.pgw_s5_s8_address_for_control_plane_or_pmip.len = GTP_F_TEID_IPV4_LEN;
|
|
|
|
|
|
|
|
_value = "05766f6c7465036e 6732046d6e657406 6d6e63303130066d 6363353535046770 7273";
|
|
|
|
req.access_point_name.presence = 1;
|
|
|
|
req.access_point_name.data = CORE_HEX(_value, strlen(_value), apnbuf);
|
|
|
|
req.access_point_name.len = sizeof(apnbuf);
|
|
|
|
|
|
|
|
req.selection_mode.presence = 1;
|
|
|
|
req.selection_mode.u8 = GTP_SELECTION_MODE_MS_OR_NETWORK_PROVIDED_APN | 0xfc;
|
|
|
|
|
|
|
|
req.pdn_type.presence = 1;
|
|
|
|
req.pdn_type.u8 = GTP_PDN_TYPE_IPV4;
|
|
|
|
|
|
|
|
memset(&paa, 0, sizeof(gtp_paa_t));
|
|
|
|
paa.pdn_type = GTP_PDN_TYPE_IPV4;
|
|
|
|
req.pdn_address_allocation.presence = 1;
|
|
|
|
req.pdn_address_allocation.data = &paa;
|
|
|
|
req.pdn_address_allocation.len = GTP_PAA_IPV4_LEN;
|
|
|
|
|
|
|
|
req.maximum_apn_restriction.presence = 1;
|
|
|
|
req.maximum_apn_restriction.u8 = GTP_APN_NO_RESTRICTION;
|
|
|
|
|
|
|
|
memset(&ambr, 0, sizeof(gtp_ambr_t));
|
|
|
|
ambr.uplink = htonl(1000);
|
|
|
|
ambr.downlink = htonl(2000);
|
|
|
|
req.aggregate_maximum_bit_rate.presence = 1;
|
|
|
|
req.aggregate_maximum_bit_rate.data = &ambr;
|
|
|
|
req.aggregate_maximum_bit_rate.len = sizeof(ambr);
|
|
|
|
|
2017-04-08 04:02:07 +00:00
|
|
|
memset(&pco, 0, sizeof(pco_t));
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.ext = 1;
|
|
|
|
pco.configuration_protocol =
|
2017-04-08 04:02:07 +00:00
|
|
|
PCO_PPP_FOR_USE_WITH_IP_PDP_TYPE_OR_IP_PDN_TYPE;
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.num_of_id = 3;
|
2017-04-08 04:02:07 +00:00
|
|
|
pco.ids[0].id = PROTOCOL_OR_CONTAINER_ID_INTERNET_PROTOCOL_CONTROL_PROTOCOL;
|
2017-03-25 16:29:41 +00:00
|
|
|
pco.ids[0].contents = (c_uint8_t *)"\x01\x00\x00\x10\x81\x06\x00\x00\x00\x00\x83\x06\x00\x00\x00\x00";
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.ids[0].length = 16;
|
2017-04-08 04:02:07 +00:00
|
|
|
pco.ids[1].id = PROTOCOL_OR_CONTAINER_ID_DNS_SERVER_IPV4_ADDRESS_REQUEST;
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.ids[1].length = 0;
|
2017-04-08 04:02:07 +00:00
|
|
|
pco.ids[2].id = PROTOCOL_OR_CONTAINER_ID_IP_ADDRESS_ALLOCATION_VIA_NAS_SIGNALLING;
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.ids[2].length = 0;
|
2017-04-08 04:02:07 +00:00
|
|
|
|
2017-03-25 16:19:44 +00:00
|
|
|
req.protocol_configuration_options.presence = 1;
|
2017-04-08 04:02:07 +00:00
|
|
|
req.protocol_configuration_options.data = &pcobuf;
|
|
|
|
req.protocol_configuration_options.len =
|
|
|
|
pco_build(pcobuf, MAX_PCO_LEN, &pco);
|
2017-03-25 16:19:44 +00:00
|
|
|
|
|
|
|
req.bearer_contexts_to_be_created.presence = 1;
|
|
|
|
req.bearer_contexts_to_be_created.eps_bearer_id.presence = 1;
|
|
|
|
req.bearer_contexts_to_be_created.eps_bearer_id.u8 = 5;
|
|
|
|
|
|
|
|
memset(&bearer_qos, 0, sizeof(bearer_qos));
|
|
|
|
bearer_qos.pvi = 1;
|
|
|
|
bearer_qos.pl = 1;
|
|
|
|
bearer_qos.pci = 1;
|
|
|
|
bearer_qos.qci = 5;
|
|
|
|
req.bearer_contexts_to_be_created.bearer_level_qos.presence = 1;
|
|
|
|
size = gtp_build_bearer_qos(
|
|
|
|
&req.bearer_contexts_to_be_created.bearer_level_qos,
|
|
|
|
&bearer_qos, bearer_qos_buf, GTP_BEARER_QOS_LEN);
|
|
|
|
|
|
|
|
memset(&ue_timezone, 0, sizeof(ue_timezone));
|
|
|
|
ue_timezone.timezone = 0x40;
|
|
|
|
ue_timezone.daylight_saving_time =
|
|
|
|
GTP_UE_TIME_ZONE_NO_ADJUSTMENT_FOR_DAYLIGHT_SAVING_TIME;
|
|
|
|
req.ue_time_zone.presence = 1;
|
|
|
|
req.ue_time_zone.data = &ue_timezone;
|
|
|
|
req.ue_time_zone.len = sizeof(ue_timezone);
|
|
|
|
|
|
|
|
req.charging_characteristics.presence = 1;
|
2017-03-25 16:29:41 +00:00
|
|
|
req.charging_characteristics.data = (c_uint8_t *)"\x54\x00";
|
2017-03-25 16:19:44 +00:00
|
|
|
req.charging_characteristics.len = 2;
|
|
|
|
|
|
|
|
rv = tlv_build_msg(&pkbuf, &tlv_desc_create_session_request, &req,
|
|
|
|
TLV_MODE_T1_L2_I1);
|
|
|
|
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
|
|
|
|
|
|
|
ABTS_TRUE(tc, memcmp(pkbuf->payload,
|
|
|
|
CORE_HEX(_payload, strlen(_payload), hexbuf), pkbuf->len) == 0);
|
2017-03-15 08:12:41 +00:00
|
|
|
|
|
|
|
memset(&req, 0, sizeof(req));
|
2017-03-24 16:07:59 +00:00
|
|
|
rv = tlv_parse_msg(&req, &tlv_desc_create_session_request, pkbuf,
|
2017-03-15 08:12:41 +00:00
|
|
|
TLV_MODE_T1_L2_I1);
|
|
|
|
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
|
|
|
|
2017-03-24 12:10:13 +00:00
|
|
|
pkbuf_free(pkbuf);
|
|
|
|
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, req.imsi.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 8, req.imsi.len);
|
2017-03-15 10:18:24 +00:00
|
|
|
_value = "55153011 340010f4";
|
2017-03-25 02:16:18 +00:00
|
|
|
ABTS_TRUE(tc, memcmp(CORE_HEX(_value, strlen(_value), hexbuf),
|
2017-03-25 01:45:49 +00:00
|
|
|
req.imsi.data, req.imsi.len) == 0);
|
2017-03-15 10:18:24 +00:00
|
|
|
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, req.msisdn.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 6, req.msisdn.len);
|
2017-03-15 10:18:24 +00:00
|
|
|
_value = "94715276 0041";
|
2017-03-25 02:16:18 +00:00
|
|
|
ABTS_TRUE(tc, memcmp(CORE_HEX(_value, strlen(_value), hexbuf),
|
2017-03-25 01:45:49 +00:00
|
|
|
req.msisdn.data, req.msisdn.len) == 0);
|
2017-03-15 10:18:24 +00:00
|
|
|
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, req.me_identity.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 8, req.me_identity.len);
|
2017-03-15 10:18:24 +00:00
|
|
|
_value = "53612000 91788400";
|
2017-03-25 02:16:18 +00:00
|
|
|
ABTS_TRUE(tc, memcmp(CORE_HEX(_value, strlen(_value), hexbuf),
|
2017-03-15 12:20:26 +00:00
|
|
|
req.me_identity.data, req.me_identity.len) == 0);
|
2017-03-15 10:18:24 +00:00
|
|
|
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, req.user_location_information.presence);
|
2017-03-25 03:10:08 +00:00
|
|
|
size = gtp_parse_uli(&uli, &req.user_location_information);
|
2017-03-25 02:16:18 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 13, size);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, uli.flags.lai);
|
2017-04-11 11:44:38 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, uli.flags.e_cgi);
|
|
|
|
ABTS_INT_EQUAL(tc, 105729, uli.e_cgi.cell_id);
|
2017-03-25 02:16:18 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, uli.flags.tai);
|
|
|
|
ABTS_INT_EQUAL(tc, 4130, uli.tai.tac);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, uli.flags.rai);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, uli.flags.sai);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, uli.flags.cgi);
|
|
|
|
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, req.serving_network.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.rat_type.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.indication_flags.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.sender_f_teid_for_control_plane.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.pgw_s5_s8_address_for_control_plane_or_pmip.
|
|
|
|
presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.access_point_name.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.selection_mode.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.pdn_type.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.pdn_address_allocation.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.maximum_apn_restriction.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.aggregate_maximum_bit_rate.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.linked_eps_bearer_id.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.trusted_wlan_mode_indication.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.protocol_configuration_options.presence);
|
2017-04-08 04:02:07 +00:00
|
|
|
size = pco_parse(&pco, req.protocol_configuration_options.data,
|
|
|
|
req.protocol_configuration_options.len);
|
2017-03-25 16:19:44 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 26, size);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, pco.ext);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, pco.configuration_protocol);
|
|
|
|
ABTS_INT_EQUAL(tc, 3, pco.num_of_id);
|
|
|
|
ABTS_INT_EQUAL(tc,
|
2017-04-08 04:02:07 +00:00
|
|
|
PROTOCOL_OR_CONTAINER_ID_INTERNET_PROTOCOL_CONTROL_PROTOCOL,
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.ids[0].id);
|
|
|
|
ABTS_INT_EQUAL(tc, 16, pco.ids[0].length);
|
|
|
|
ABTS_TRUE(tc, memcmp(
|
|
|
|
"\x01\x00\x00\x10\x81\x06\x00\x00\x00\x00\x83\x06\x00\x00\x00\x00",
|
|
|
|
pco.ids[0].contents, pco.ids[0].length) == 0);
|
|
|
|
ABTS_INT_EQUAL(tc,
|
2017-04-08 04:02:07 +00:00
|
|
|
PROTOCOL_OR_CONTAINER_ID_DNS_SERVER_IPV4_ADDRESS_REQUEST,
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.ids[1].id);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, pco.ids[1].length);
|
|
|
|
ABTS_INT_EQUAL(tc,
|
2017-04-08 04:02:07 +00:00
|
|
|
PROTOCOL_OR_CONTAINER_ID_IP_ADDRESS_ALLOCATION_VIA_NAS_SIGNALLING,
|
2017-03-25 16:19:44 +00:00
|
|
|
pco.ids[2].id);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, pco.ids[2].length);
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 1, req.bearer_contexts_to_be_created.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.
|
|
|
|
bearer_contexts_to_be_created.eps_bearer_id.presence);
|
2017-03-15 13:28:04 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 0x05,
|
|
|
|
req.bearer_contexts_to_be_created.eps_bearer_id.u8);
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.tft.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.s1_u_enodeb_f_teid.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.s2b_u_epdg_f_teid_5.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.s2a_u_twan_f_teid_6.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.
|
|
|
|
bearer_contexts_to_be_created.bearer_level_qos.presence);
|
2017-03-15 11:37:54 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 22,
|
2017-03-15 12:20:26 +00:00
|
|
|
req.bearer_contexts_to_be_created.bearer_level_qos.len);
|
2017-03-25 16:19:44 +00:00
|
|
|
size = gtp_parse_bearer_qos(&bearer_qos,
|
|
|
|
&req.bearer_contexts_to_be_created.bearer_level_qos);
|
|
|
|
ABTS_INT_EQUAL(tc, 22, size);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, bearer_qos.pvi);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, bearer_qos.pl);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, bearer_qos.pci);
|
|
|
|
ABTS_INT_EQUAL(tc, 5, bearer_qos.qci);
|
2017-03-15 12:20:26 +00:00
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.s11_u_mme_f_teid.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.cause.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.transaction_identifier.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.
|
|
|
|
bearer_contexts_to_be_created.packet_flow_id.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.bearer_contexts_to_be_removed.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.recovery.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.mme_fq_csid.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.sgw_fq_csid.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.epdg_fq_csid.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.twan_fq_csid.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.ue_time_zone.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.user_csg_information.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 1, req.charging_characteristics.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.mme_s4_sgsn_ldn.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.sgw_ldn.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.epdg_ldn.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.mo_exception_data_counter.presence);
|
|
|
|
ABTS_INT_EQUAL(tc, 0, req.ue_tcp_port.presence);
|
2017-03-12 01:23:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
abts_suite *test_gtp_message(abts_suite *suite)
|
|
|
|
{
|
|
|
|
suite = ADD_SUITE(suite)
|
|
|
|
|
|
|
|
abts_run_test(suite, gtp_message_test1, NULL);
|
|
|
|
|
|
|
|
return suite;
|
|
|
|
}
|