X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_egtp.h;h=8bd133a16ab452dc9157e3eff02ff11eec97ca4a;hb=7bbfb856ac535a1d45ebdf9d37bb3ffc5e7a83dc;hp=5fb3d653c95c2ce2c46c79db2829fc11d2da8900;hpb=65443172dd60a6ea312bd3a15959dbf54ad7f045;p=o-du%2Fl2.git diff --git a/src/du_app/du_egtp.h b/src/du_app/du_egtp.h index 5fb3d653c..8bd133a16 100644 --- a/src/du_app/du_egtp.h +++ b/src/du_app/du_egtp.h @@ -21,7 +21,7 @@ #ifndef __DU_EGTP_H__ #define __DU_EGTP_H__ -#define EGTP_DFLT_PORT 2152 +#define EGTP_RECVR_PORT 2152 /* As per the spec 29.281, the registered port number for GTP-U is 2152 */ #define EGTP_MAX_HDR_LEN 40 #define EGTP_MAX_MSG_RECV 10 @@ -40,12 +40,6 @@ uint8_t unpackEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf); uint8_t protType; -typedef struct egtpTptSrvr -{ - CmInetAddr addr; - CmInetFd sockFd; /* Socket file descriptor */ -}EgtpTptSrvr; - typedef struct EgtpTeIdCb { uint32_t teId; /* Local tunnel id */ @@ -59,9 +53,7 @@ typedef struct EgtpTeIdCb typedef struct egtpDstCb { - CmInetIpAddr dstIp; /* destination IP */ - uint16_t dstPort; /* destination port that sends data */ - EgtpTptSrvr sendTptSrvr; /* Transport server for sending UDP msg to */ + CmInetAddr dstAddr; /* Destination Server address */ uint32_t numTunn; /* Number of tunnels */ CmHashListCp teIdLst; /* Tunnel Id list for this destination */ }EgtpDstCb; @@ -69,9 +61,11 @@ typedef struct egtpDstCb typedef struct egtpGlobalCb { EgtpConfig egtpCfg; /* EGTP configuration */ - EgtpTptSrvr recvTptSrvr; /* Transport server for receiving UDP msg */ + CmInetAddr localAddr; /* Local Server address */ + CmInetFd sockFd; /* Socket file descriptor */ EgtpDstCb dstCb; /* Destination endpoint */ }EgtpGlobalCb; + EgtpGlobalCb egtpCb; /* EGTP global control block */ uint8_t duHdlEgtpDlData(EgtpMsg *egtpMsg); @@ -80,7 +74,7 @@ uint8_t egtpActvTsk(Pst *pst, Buffer *mBuf); uint8_t egtpFillRspPst(Pst *pst, Pst *rspPst); uint8_t egtpCfgReq(Pst *pst, EgtpConfig egtpCfg); uint8_t egtpSrvOpenReq(Pst *pst); -uint8_t egtpSrvOpenPrc(uint8_t sockType, EgtpTptSrvr *server); +uint8_t egtpSrvOpenPrc(uint8_t sockType); uint8_t egtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt); uint8_t egtpTnlAdd(EgtpTnlEvt tnlEvt); uint8_t egtpTnlMod(EgtpTnlEvt tnlEvt);