X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fdu_app%2Fdu_egtp.c;h=b9de0c41298815c39182e1475b01e17c6b2b1765;hb=5f7e53d8154a1c526845f7b384ee4325e6bc642f;hp=a5d63aa30c8da87c746c5435cf60b9b0f118e0e7;hpb=cdf2274ce07f8a5e066f1a49e92db156f1a92c66;p=o-du%2Fl2.git diff --git a/src/du_app/du_egtp.c b/src/du_app/du_egtp.c index a5d63aa30..b9de0c412 100644 --- a/src/du_app/du_egtp.c +++ b/src/du_app/du_egtp.c @@ -34,6 +34,9 @@ #include "du_utils.h" +uint8_t unpackEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf); +uint8_t protType; +EgtpGlobalCb egtpCb; /* EGTP global control block */ /************************************************************************** * @brief Task Initiation callback function. * @@ -60,7 +63,7 @@ uint8_t egtpActvInit(Ent entity, Inst inst, Region region, Reason reason) memset (&egtpCb, 0, sizeof(EgtpGlobalCb)); protType = CM_INET_PROTO_UDP; - gDlDataRcvdCnt = 0; + gConfigInfo.gDlDataRcvdCnt = 0; return ROK; } @@ -920,10 +923,10 @@ uint8_t egtpRecvMsg() ret = cmInetRecvMsg(&egtpCb.sockFd, &egtpCb.dstCb.dstAddr, &memInfo, &recvBuf, (int16_t *)&bufLen, CM_INET_NO_FLAG); if(ret == ROK && recvBuf != NULLP) { - DU_LOG("\nDEBUG --> EGTP : Received DL Message[%ld]\n", gDlDataRcvdCnt + 1); + DU_LOG("\nDEBUG --> EGTP : Received DL Message[%ld]\n", gConfigInfo.gDlDataRcvdCnt + 1); //ODU_PRINT_MSG(recvBuf, 0 ,0); egtpHdlRecvData(recvBuf); - gDlDataRcvdCnt++; + gConfigInfo.gDlDataRcvdCnt++; } }