X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_egtp.c;h=b9de0c41298815c39182e1475b01e17c6b2b1765;hb=fc7d3ce9647a7da04f5a67fa34419076069defc1;hp=4cf5be761bbb87965f6d180552da9c56d3fd907c;hpb=a50cee433ee06d6a8a4215c274432ab4ad8fdb26;p=o-du%2Fl2.git diff --git a/src/du_app/du_egtp.c b/src/du_app/du_egtp.c index 4cf5be761..b9de0c412 100644 --- a/src/du_app/du_egtp.c +++ b/src/du_app/du_egtp.c @@ -18,6 +18,7 @@ /* This file contains all EGTP related functionality */ #include "common_def.h" +#include "du_tmr.h" #include "lrg.h" #include "lkw.x" #include "lrg.x" @@ -33,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. * @@ -59,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; } @@ -919,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++; } }