forked from acouzens/open5gs
[CORE] OGS_MAX_SDU_LEN->OGS_HUGE_LEN Stack (#2008)
Changed all OGS_MAX_SDU_LEN in the stack to OGS_HUGE_LEN.
This commit is contained in:
parent
596a2f1b5e
commit
3715b9ece3
|
@ -215,15 +215,22 @@ int ogs_asn_copy_ie(const asn_TYPE_descriptor_t *td, void *src, void *dst)
|
|||
{
|
||||
asn_enc_rval_t enc_ret = {0};
|
||||
asn_dec_rval_t dec_ret = {0};
|
||||
uint8_t buffer[OGS_MAX_SDU_LEN];
|
||||
uint8_t *buffer = NULL;
|
||||
|
||||
ogs_assert(td);
|
||||
ogs_assert(src);
|
||||
ogs_assert(dst);
|
||||
|
||||
buffer = ogs_calloc(1, OGS_MAX_SDU_LEN);
|
||||
if (!buffer) {
|
||||
ogs_error("ogs_calloc() failed");
|
||||
return OGS_ERROR;
|
||||
}
|
||||
|
||||
enc_ret = aper_encode_to_buffer(td, NULL, src, buffer, OGS_MAX_SDU_LEN);
|
||||
if (enc_ret.encoded < 0) {
|
||||
ogs_error("aper_encode_to_buffer() failed[%d]", (int)enc_ret.encoded);
|
||||
ogs_free(buffer);
|
||||
return OGS_ERROR;
|
||||
}
|
||||
|
||||
|
@ -232,8 +239,11 @@ int ogs_asn_copy_ie(const asn_TYPE_descriptor_t *td, void *src, void *dst)
|
|||
|
||||
if (dec_ret.code != RC_OK) {
|
||||
ogs_error("aper_decode() failed[%d]", dec_ret.code);
|
||||
ogs_free(buffer);
|
||||
return OGS_ERROR;
|
||||
}
|
||||
|
||||
ogs_free(buffer);
|
||||
|
||||
return OGS_OK;
|
||||
}
|
||||
|
|
|
@ -881,7 +881,7 @@ ogs_pkbuf_t *testemm_build_uplink_nas_transport(test_ue_t *test_ue)
|
|||
ogs_nas_eps_message_container_t *nas_message_container =
|
||||
&uplink_nas_transport->nas_message_container;
|
||||
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
const char *payload =
|
||||
"390167000300"
|
||||
"0581005155f55d11 030c914477680205 490000055ad2e2b1 252d467ff6de6c47"
|
||||
|
|
|
@ -356,7 +356,7 @@ int test_gtpu_send_slacc_rs(ogs_socknode_t *node, test_bearer_t *bearer)
|
|||
const char *payload =
|
||||
"6000000000083aff fe80000000000000 0000000000000002"
|
||||
"ff02000000000000 0000000000000002 85007d3500000000";
|
||||
unsigned char tmp[OGS_MAX_SDU_LEN];
|
||||
unsigned char tmp[OGS_HUGE_LEN];
|
||||
int payload_len = 48;
|
||||
|
||||
ogs_assert(bearer);
|
||||
|
@ -425,7 +425,7 @@ int test_gtpu_send_slacc_rs_with_unspecified_source_address(
|
|||
"60000000"
|
||||
"00103afffe800000 0000000074ee25ff fee4b579ff020000 0000000000000000"
|
||||
"000000028500da95 00000000010176ee 25e4b579";
|
||||
unsigned char tmp[OGS_MAX_SDU_LEN];
|
||||
unsigned char tmp[OGS_HUGE_LEN];
|
||||
int payload_len = 56;
|
||||
|
||||
ogs_assert(bearer);
|
||||
|
|
|
@ -670,7 +670,7 @@ ogs_pkbuf_t *testngap_build_ue_radio_capability_info_indication(
|
|||
NGAP_RAN_UE_NGAP_ID_t *RAN_UE_NGAP_ID = NULL;
|
||||
NGAP_UERadioCapability_t *UERadioCapability = NULL;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_capability_captured = "040ca1080f"
|
||||
"de1a00000074e5a0 31e000380a03c126 0c80038d80818804 804c0203018022a3"
|
||||
"6146b040d0d00012 0098087ad8202020 e1de38720c380020 64f1f570000f001c"
|
||||
|
@ -1740,7 +1740,7 @@ ogs_pkbuf_t *testngap_build_handover_required(
|
|||
NGAP_SourceToTarget_TransparentContainer_t
|
||||
*SourceToTarget_TransparentContainer = NULL;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_container =
|
||||
"40"
|
||||
"0300001100000a00 010002f839000102 0120000002f83900 0000001000000a";
|
||||
|
@ -1903,7 +1903,7 @@ ogs_pkbuf_t *testngap_build_handover_request_ack(test_ue_t *test_ue)
|
|||
NGAP_TargetToSource_TransparentContainer_t
|
||||
*TargetToSource_TransparentContainer = NULL;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_container =
|
||||
"00010000";
|
||||
|
||||
|
|
|
@ -400,7 +400,7 @@ ogs_pkbuf_t *tests1ap_build_ue_radio_capability_info_indication(
|
|||
S1AP_ENB_UE_S1AP_ID_t *ENB_UE_S1AP_ID = NULL;
|
||||
S1AP_UERadioCapability_t *UERadioCapability = NULL;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_capability_captured =
|
||||
"013001023c"
|
||||
"d98000bc000ff06e c4d00141b82c0000 000007d404000ef0 802000016a030000"
|
||||
|
@ -1441,7 +1441,7 @@ ogs_pkbuf_t *test_s1ap_build_handover_required(
|
|||
S1AP_Source_ToTarget_TransparentContainer_t
|
||||
*Source_ToTarget_TransparentContainer = NULL;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_container =
|
||||
"4080ab0f1014"
|
||||
"c59800018000bf06 ec4d00100302c000 0000000015a80014 06720af00348f100"
|
||||
|
@ -1574,7 +1574,7 @@ ogs_pkbuf_t *test_s1ap_build_handover_request_ack(test_ue_t *test_ue)
|
|||
S1AP_Target_ToSource_TransparentContainer_t
|
||||
*Target_ToSource_TransparentContainer = NULL;
|
||||
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
const char *payload =
|
||||
"00 80810bf900d8af40 00a0339057801f47 88009e81de2c20a4"
|
||||
"81de2c404a00ef16 2000010044013f21 2249008093efd243 3914cd2aa0a0142f"
|
||||
|
@ -2011,7 +2011,7 @@ ogs_pkbuf_t *test_s1ap_build_invalid_packet(int i)
|
|||
0,
|
||||
};
|
||||
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -2055,7 +2055,7 @@ ogs_pkbuf_t *test_s1ap_build_enb_configuration_transfer(int i)
|
|||
0,
|
||||
0,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
|
|
@ -35,7 +35,7 @@ ogs_pkbuf_t *test_sgsap_location_update_accept(int i)
|
|||
25,
|
||||
0,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -59,7 +59,7 @@ ogs_pkbuf_t *test_sgsap_location_update_reject(int i)
|
|||
0,
|
||||
0,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -83,7 +83,7 @@ ogs_pkbuf_t *test_sgsap_imsi_detach_ack(int i)
|
|||
0,
|
||||
0,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -119,7 +119,7 @@ ogs_pkbuf_t *test_sgsap_paging_request(int i)
|
|||
0,
|
||||
0,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -143,7 +143,7 @@ ogs_pkbuf_t *test_sgsap_reset_indication(int i)
|
|||
0,
|
||||
0,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -167,7 +167,7 @@ ogs_pkbuf_t *test_sgsap_release_request(int i)
|
|||
0,
|
||||
0,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -188,7 +188,7 @@ ogs_pkbuf_t *test_sgsap_downlink_unitdata(int i)
|
|||
uint16_t len[TEST_SGSAP_MAX_MESSAGE] = {
|
||||
51,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -209,7 +209,7 @@ ogs_pkbuf_t *test_sgsap_mm_information_request(int i)
|
|||
uint16_t len[TEST_SGSAP_MAX_MESSAGE] = {
|
||||
33,
|
||||
};
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
|
|
@ -32,7 +32,7 @@ static void failure_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -427,7 +427,7 @@ static void direct_complete_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1044,7 +1044,7 @@ static void direct_cancel_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1455,7 +1455,7 @@ static void indirect_complete_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -2105,7 +2105,7 @@ static void indirect_cancel_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
|
@ -32,7 +32,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
|
@ -1548,7 +1548,7 @@ static void vonr_qos_flow_test1_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1943,7 +1943,7 @@ static void vonr_session_test2_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
|
@ -343,7 +343,7 @@ static void test2_func(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *enb_pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
enb_pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(enb_pkbuf);
|
||||
|
@ -370,7 +370,7 @@ static void test3_func(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *enb_pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
enb_pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(enb_pkbuf);
|
||||
|
@ -396,7 +396,7 @@ static void test4_func(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *enb_pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
enb_pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(enb_pkbuf);
|
||||
|
@ -420,7 +420,7 @@ static void test5_func(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *enb_pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
enb_pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(enb_pkbuf);
|
||||
|
@ -587,7 +587,7 @@ static void test6_func(abts_case *tc, void *data)
|
|||
|
||||
ogs_pkbuf_t *s1apbuf = NULL;
|
||||
ogs_pkbuf_t *emmbuf = NULL;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
emmbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(emmbuf);
|
||||
|
|
|
@ -34,7 +34,7 @@ static void gtp_message_test1(abts_case *tc, void *data)
|
|||
"005d001f00490001 0005500016004505 0000000000000000 0000000000000000"
|
||||
"0000000072000200 40005f0002005400";
|
||||
char *_value = NULL;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
ogs_gtp2_create_session_request_t req;
|
||||
ogs_gtp2_uli_t uli;
|
||||
|
|
|
@ -32,7 +32,7 @@ static void ogs_nas_eps_message_test1(abts_case *tc, void *data)
|
|||
ogs_nas_eps_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int rv;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -145,7 +145,7 @@ static void ogs_nas_eps_message_test3(abts_case *tc, void *data)
|
|||
ogs_nas_eps_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int rv;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -205,7 +205,7 @@ static void ogs_nas_eps_message_test6(abts_case *tc, void *data)
|
|||
{
|
||||
/* Identity Request */
|
||||
const char *payload = "075501";
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
ogs_nas_eps_message_t message;
|
||||
ogs_nas_eps_identity_request_t *identity_request =
|
||||
|
@ -287,7 +287,7 @@ static void ogs_nas_eps_message_test8(abts_case *tc, void *data)
|
|||
ogs_nas_eps_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int rv;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
ogs_nas_eps_service_request_t *service_request =
|
||||
&message.emm.service_request;
|
||||
ogs_nas_ksi_and_sequence_number_t *ksi_and_sequence_number =
|
||||
|
|
|
@ -90,7 +90,7 @@ static void ngap_message_test2(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
ogs_ngap_message_t *struct_ptr = NULL;
|
||||
size_t struct_size;
|
||||
|
@ -125,7 +125,7 @@ static void ngap_message_test3(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
ogs_ngap_message_t *struct_ptr = NULL;
|
||||
size_t struct_size;
|
||||
|
@ -160,7 +160,7 @@ static void ngap_message_test4(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
ogs_ngap_message_t *struct_ptr = NULL;
|
||||
size_t struct_size;
|
||||
|
|
|
@ -32,7 +32,7 @@ static void s1ap_message_test1(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -62,7 +62,7 @@ static void s1ap_message_test2(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -87,7 +87,7 @@ static void s1ap_message_test3(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -113,7 +113,7 @@ static void s1ap_message_test4(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -138,7 +138,7 @@ static void s1ap_message_test5(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -163,7 +163,7 @@ static void s1ap_message_test6(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
@ -188,7 +188,7 @@ static void s1ap_message_test7(abts_case *tc, void *data)
|
|||
ogs_s1ap_message_t message;
|
||||
ogs_pkbuf_t *pkbuf;
|
||||
int result;
|
||||
char hexbuf[OGS_MAX_SDU_LEN];
|
||||
char hexbuf[OGS_HUGE_LEN];
|
||||
|
||||
pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
|
||||
ogs_assert(pkbuf);
|
||||
|
|
|
@ -33,7 +33,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -713,7 +713,7 @@ static void test2_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1188,7 +1188,7 @@ static void test3_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1643,7 +1643,7 @@ static void test4_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -2270,7 +2270,7 @@ static void test5_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -2987,7 +2987,7 @@ static void test6_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -3524,7 +3524,7 @@ static void test7_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
|
@ -32,7 +32,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
|
@ -32,7 +32,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -511,7 +511,7 @@ static void test2_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -940,7 +940,7 @@ static void test3_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1355,7 +1355,7 @@ static void test4_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1698,7 +1698,7 @@ static void test5_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
@ -1976,7 +1976,7 @@ static void test6_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
|
@ -33,7 +33,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
|
@ -33,7 +33,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
ogs_ngap_message_t message;
|
||||
int i;
|
||||
|
||||
uint8_t tmp[OGS_MAX_SDU_LEN];
|
||||
uint8_t tmp[OGS_HUGE_LEN];
|
||||
char *_gtp_payload = "34ff0024"
|
||||
"0000000100000085 010002004500001c 0c0b000040015a7a 0a2d00010a2d0002"
|
||||
"00000964cd7c291f";
|
||||
|
|
Loading…
Reference in New Issue