X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Flegtp.h;h=dee4ab86b19e8ebda46723e291f75107b799067b;hb=a5f35b2204dd87ebe347f11282000852b55810ad;hp=f77b401d57daf4dfd855c7e079915629acd3270f;hpb=3235ecfc7414aa0b72d0ad50db63ae8b5626045b;p=o-du%2Fl2.git diff --git a/src/cm/legtp.h b/src/cm/legtp.h index f77b401d5..dee4ab86b 100644 --- a/src/cm/legtp.h +++ b/src/cm/legtp.h @@ -42,43 +42,43 @@ typedef enum egtpMsgType typedef struct egtpIpAddr { - Bool ipV4Pres; - U32 ipV4Addr; + Bool ipV4Pres; + uint32_t ipV4Addr; }EgtpIpAddr; typedef struct egtpConfig { EgtpIpAddr localIp; - U16 localPort; + uint16_t localPort; EgtpIpAddr destIp; - U16 destPort; - U32 minTunnelId; - U32 maxTunnelId; + uint16_t destPort; + uint32_t minTunnelId; + uint32_t maxTunnelId; }EgtpConfig; typedef struct egtpTnlEvt { - U8 action; - U32 lclTeid; - U32 remTeid; + uint8_t action; + uint32_t lclTeid; + uint32_t remTeid; CmStatus cfmStatus; }EgtpTnlEvt; /*Extension Header */ typedef struct egtpExtHdr { - TknU16 udpPort; /**< UDP Port */ - TknU16 pdcpNmb; /**< PDCP Number */ + TknUInt16 udpPort; /**< UDP Port */ + TknUInt16 pdcpNmb; /**< PDCP Number */ }EgtpExtHdr; /*Structure for MsgHdr */ typedef struct egtpMsgHdr { - TknU8 nPdu; /**< N-PDU Number */ - TknU32 seqNum; /**< Sequence Number */ - EgtpExtHdr extHdr; /**< Extension headers present flag */ - U32 teId; /**< Tunnel Endpoint Id */ - U8 msgType; /**< eGTP-U Message Type */ + TknUInt8 nPdu; /**< N-PDU Number */ + TknUInt32 seqNum; /**< Sequence Number */ + EgtpExtHdr extHdr; /**< Extension headers present flag */ + uint32_t teId; /**< Tunnel Endpoint Id */ + uint8_t msgType; /**< eGTP-U Message Type */ }EgtpMsgHdr; typedef struct egtpMsg @@ -87,28 +87,28 @@ typedef struct egtpMsg Buffer *msg; }EgtpMsg; -typedef S16 (*EgtpCfgReq) ARGS((Pst *pst, EgtpConfig egtpCfg)); -typedef S16 (*EgtpCfgCfm) ARGS((CmStatus cfm)); -typedef S16 (*EgtpInitReq) ARGS((Buffer *mBuf)); -typedef S16 (*EgtpSrvOpenReq) ARGS(()); -typedef S16 (*EgtpSrvOpenCfm) ARGS((CmStatus cfm)); -typedef S16 (*EgtpTnlMgmtReq) ARGS((Pst *pst, EgtpTnlEvt tnlEvt)); -typedef S16 (*EgtpTnlMgmtCfm) ARGS((EgtpTnlEvt tnlEvt)); -typedef S16 (*EgtpTTIInd) ARGS(()); +typedef uint8_t (*EgtpCfgReq) ARGS((Pst *pst, EgtpConfig egtpCfg)); +typedef uint8_t (*EgtpCfgCfm) ARGS((CmStatus cfm)); +typedef uint8_t (*EgtpInitReq) ARGS((Buffer *mBuf)); +typedef uint8_t (*EgtpSrvOpenReq) ARGS(()); +typedef uint8_t (*EgtpSrvOpenCfm) ARGS((CmStatus cfm)); +typedef uint8_t (*EgtpTnlMgmtReq) ARGS((Pst *pst, EgtpTnlEvt tnlEvt)); +typedef uint8_t (*EgtpTnlMgmtCfm) ARGS((EgtpTnlEvt tnlEvt)); +typedef uint8_t (*EgtpSlotInd) ARGS(()); -S16 cmPkEgtpCfgReq(Pst *pst, EgtpConfig egtpCfg); -S16 cmUnpkEgtpCfgReq(EgtpCfgReq func , Pst *pst, Buffer *mBuf); -S16 cmPkEgtpCfgCfm(Pst *pst, CmStatus cfm); -S16 cmUnpkEgtpCfgCfm(EgtpCfgCfm func, Buffer *mBuf); -S16 cmPkEgtpSrvOpenReq(Pst *pst); -S16 cmUnpkEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf); -S16 cmPkEgtpSrvOpenCfm(Pst *pst, CmStatus cfm); -S16 cmUnpkEgtpSrvOpenCfm(EgtpSrvOpenCfm func, Buffer *mBuf); -S16 cmPkEgtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt); -S16 cmUnpkEgtpTnlMgmtReq(EgtpTnlMgmtReq func, Pst *pst, Buffer *mBuf); -S16 cmPkEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt); -S16 cmUnpkEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf); -S16 cmPkEgtpTTIInd(Pst *pst); -S16 cmUnpkEgtpTTIInd(EgtpTTIInd func, Pst *pst, Buffer *mBuf); - +uint8_t packEgtpCfgReq(Pst *pst, EgtpConfig egtpCfg); +uint8_t unpackEgtpCfgReq(EgtpCfgReq func , Pst *pst, Buffer *mBuf); +uint8_t packEgtpCfgCfm(Pst *pst, CmStatus cfm); +uint8_t unpackEgtpCfgCfm(EgtpCfgCfm func, Buffer *mBuf); +uint8_t packEgtpSrvOpenReq(Pst *pst); +uint8_t unpackkEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf); +uint8_t packEgtpSrvOpenCfm(Pst *pst, CmStatus cfm); +uint8_t unpackEgtpSrvOpenCfm(EgtpSrvOpenCfm func, Buffer *mBuf); +uint8_t packEgtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt); +uint8_t unpackEgtpTnlMgmtReq(EgtpTnlMgmtReq func, Pst *pst, Buffer *mBuf); +uint8_t egtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt); +uint8_t packEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt); +uint8_t duHdlEgtpTnlMgmtCfm(EgtpTnlEvt tnlEvtCfm); +uint8_t unpackEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf); +uint8_t packEgtpStartPollingReq(Pst *pst); #endif