Commit 6738b8dd authored by winckel's avatar winckel
Browse files

Modified asserts in pdcp_data_req() to have more accurate information.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4786 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent f7e98c7e
#include <stdio.h>
#include <errno.h>
#include "assertions.h"
#include "NwGtpv1u.h"
#include "NwGtpv1uMsg.h"
#include "NwLog.h"
......@@ -22,7 +22,6 @@
#include <sys/socket.h>
#endif
extern unsigned char pdcp_data_req(u8 eNB_id, u8 UE_id, u32_t frame, u8_t eNB_flag, rb_id_t rb_id, u32 muiP, u32 confirmP, \
sdu_size_t sdu_buffer_size, unsigned char* sdu_buffer, u8 mode);
......@@ -42,6 +41,8 @@ NwGtpv1uRcT gtpv1u_process_stack_req(
NwGtpv1uUlpHandleT hUlp,
NwGtpv1uUlpApiT *pUlpApi)
{
int result;
switch(pUlpApi->apiType) {
/* Here there are two type of messages handled:
* - T-PDU
......@@ -61,7 +62,7 @@ NwGtpv1uRcT gtpv1u_process_stack_req(
GTPU_DEBUG("Received T-PDU from gtpv1u stack %u with size %d",
pUlpApi->apiInfo.recvMsgInfo.teid, buffer_len);
pdcp_data_req(0, // eNB_idx,
result = pdcp_data_req(0, // eNB_idx,
0, // UE idx
0, // frame
1, // enb flag
......@@ -71,6 +72,7 @@ NwGtpv1uRcT gtpv1u_process_stack_req(
buffer_len,
buffer,
1);
AssertFatal (result == TRUE, "PDCP data request failed!\n");
}
break;
default: {
......
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