Commit 17fcb684 authored by Robert Schmidt's avatar Robert Schmidt

PNF P7 packing: enlarge buffer

parent cc6bac70
...@@ -2091,8 +2091,9 @@ static uint8_t pack_tx_data_pdu_list_value(void *tlv, uint8_t **ppWritePackedMsg ...@@ -2091,8 +2091,9 @@ static uint8_t pack_tx_data_pdu_list_value(void *tlv, uint8_t **ppWritePackedMsg
switch (value->TLVs[i].tag) { switch (value->TLVs[i].tag) {
case 0: { case 0: {
if (!pusharray32(value->TLVs[i].value.direct, 16384, (value->TLVs[i].length + 3) / 4, ppWritePackedMsg, end)) { uint32_t len32 = (value->TLVs[i].length + 3) / 4;
NFAPI_TRACE(NFAPI_TRACE_ERROR, "%s():%d. value->TLVs[i].length %d \n", __FUNCTION__, __LINE__, value->TLVs[i].length); if (!pusharray32(value->TLVs[i].value.direct, sizeof(value->TLVs[i].value.direct), len32, ppWritePackedMsg, end)) {
NFAPI_TRACE(NFAPI_TRACE_ERROR, "%s():%d. value->TLVs[i].length %d len32 %u max %lu pos %p end %p bytes %lu\n", __FUNCTION__, __LINE__, value->TLVs[i].length, len32, sizeof(value->TLVs[i].value.direct), *ppWritePackedMsg, end, end - *ppWritePackedMsg);
return 0; return 0;
} }
break; break;
......
...@@ -479,7 +479,7 @@ int vnf_nr_p7_pack_and_send_p7_msg(vnf_p7_t* vnf_p7, nfapi_p7_message_header_t* ...@@ -479,7 +479,7 @@ int vnf_nr_p7_pack_and_send_p7_msg(vnf_p7_t* vnf_p7, nfapi_p7_message_header_t*
if(p7_connection) if(p7_connection)
{ {
int send_result = 0; int send_result = 0;
uint8_t buffer[1024 * 32]; uint8_t buffer[65536];
header->m_segment_sequence = NFAPI_P7_SET_MSS(0, 0, p7_connection->sequence_number); header->m_segment_sequence = NFAPI_P7_SET_MSS(0, 0, p7_connection->sequence_number);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment