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 <stdio.h>
#include <errno.h> #include <errno.h>
#include "assertions.h"
#include "NwGtpv1u.h" #include "NwGtpv1u.h"
#include "NwGtpv1uMsg.h" #include "NwGtpv1uMsg.h"
#include "NwLog.h" #include "NwLog.h"
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <sys/socket.h> #include <sys/socket.h>
#endif #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, \ 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); sdu_size_t sdu_buffer_size, unsigned char* sdu_buffer, u8 mode);
...@@ -42,6 +41,8 @@ NwGtpv1uRcT gtpv1u_process_stack_req( ...@@ -42,6 +41,8 @@ NwGtpv1uRcT gtpv1u_process_stack_req(
NwGtpv1uUlpHandleT hUlp, NwGtpv1uUlpHandleT hUlp,
NwGtpv1uUlpApiT *pUlpApi) NwGtpv1uUlpApiT *pUlpApi)
{ {
int result;
switch(pUlpApi->apiType) { switch(pUlpApi->apiType) {
/* Here there are two type of messages handled: /* Here there are two type of messages handled:
* - T-PDU * - T-PDU
...@@ -61,16 +62,17 @@ NwGtpv1uRcT gtpv1u_process_stack_req( ...@@ -61,16 +62,17 @@ NwGtpv1uRcT gtpv1u_process_stack_req(
GTPU_DEBUG("Received T-PDU from gtpv1u stack %u with size %d", GTPU_DEBUG("Received T-PDU from gtpv1u stack %u with size %d",
pUlpApi->apiInfo.recvMsgInfo.teid, buffer_len); pUlpApi->apiInfo.recvMsgInfo.teid, buffer_len);
pdcp_data_req(0, // eNB_idx, result = pdcp_data_req(0, // eNB_idx,
0, // UE idx 0, // UE idx
0, // frame 0, // frame
1, // enb flag 1, // enb flag
5, // rb id 5, // rb id
0, // mui 0, // mui
0, // confirm 0, // confirm
buffer_len, buffer_len,
buffer, buffer,
1); 1);
AssertFatal (result == TRUE, "PDCP data request failed!\n");
} }
break; break;
default: { 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