From 00f23d265fe08938d3662d676066d2b5ad4f588c Mon Sep 17 00:00:00 2001 From: Lionel Gauthier Date: Mon, 2 Jun 2014 15:41:29 +0000 Subject: [PATCH] Test git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5364 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c b/openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c index de36bbc393..fc50c81601 100644 --- a/openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c +++ b/openair-cn/GTPV1-U/nw-gtpv1u/src/NwGtpv1uMsg.c @@ -97,7 +97,8 @@ nwGtpv1uMsgNew( NW_IN NwGtpv1uStackHandleT hGtpuStackHandle, pMsg->msgLen = ((pMsg->seqNumFlag || pMsg->npduNumFlag || pMsg->extHdrFlag) ? - NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE : (NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE - 4)); + 4 : 0); + //NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE : (NW_GTPV1U_EPC_SPECIFIC_HEADER_SIZE - 4)); *phMsg = (NwGtpv1uMsgHandleT) pMsg; return NW_GTPV1U_OK; @@ -142,6 +143,7 @@ nwGtpv1uGpduMsgNew( NW_IN NwGtpv1uStackHandleT hGtpuStackHandle, memcpy(pMsg->msgBuf + pMsg->msgLen, tpdu, tpduLength); pMsg->msgLen += tpduLength; + pMsg->msgLen -= 8; *phMsg = (NwGtpv1uMsgHandleT) pMsg; return NW_GTPV1U_OK;