X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_egtp.h;h=9619cd5c8f52f62074e792b47b3cd81628524e8c;hb=49856df248fd976b4a9882ca4e650fc0bc3e4ee3;hp=2f158e25b494e6435bcf9c173e31aee7ec2d5f52;hpb=a1ddf631bdb142b7cb0c7daf61e6846652d463bf;p=o-du%2Fl2.git diff --git a/src/du_app/du_egtp.h b/src/du_app/du_egtp.h index 2f158e25b..9619cd5c8 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 @@ -37,14 +37,8 @@ #define EGTP_MASK_BIT7 0x40 #define EGTP_MASK_BIT8 0x80 -uint8_t unpackEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf); -uint8_t protType; - -typedef struct egtpTptSrvr -{ - CmInetAddr addr; - CmInetFd sockFd; /* Socket file descriptor */ -}EgtpTptSrvr; +extern uint8_t unpackEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf); +extern uint8_t protType; typedef struct EgtpTeIdCb { @@ -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,11 +61,12 @@ 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 */ +extern EgtpGlobalCb egtpCb; /* EGTP global control block */ uint8_t duHdlEgtpDlData(EgtpMsg *egtpMsg); uint8_t egtpActvInit(Ent entity, Inst inst, Region region, Reason reason); @@ -81,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);