UL data path changes at Phy stub, RLC UL UM and DU APP [Issue-ID: ODUHIGH-262]
[o-du/l2.git] / src / cm / legtp.c
index 837cd95..d4acd4a 100644 (file)
@@ -141,7 +141,7 @@ uint8_t unpackEgtpCfgReq(EgtpCfgReq func, Pst *pst, Buffer *mBuf)
 {
    EgtpConfig egtpCfg;
 
-   memset((uint8_t *)&egtpCfg, 0, sizeof(EgtpConfig));
+   memset(&egtpCfg, 0, sizeof(EgtpConfig));
 
    oduPackUInt32(&(egtpCfg.maxTunnelId), mBuf);
    oduPackUInt32(&(egtpCfg.minTunnelId), mBuf);
@@ -221,7 +221,7 @@ uint8_t unpackEgtpCfgCfm(EgtpCfgCfm func, Buffer *mBuf)
 {
    CmStatus cfm;
    
-   memset((uint8_t *)&cfm, 0, sizeof(CmStatus));
+   memset(&cfm, 0, sizeof(CmStatus));
    unpackEgtpCfmStatus(&cfm, mBuf);
 
    return ((*func)(cfm));
@@ -333,7 +333,7 @@ uint8_t unpackEgtpSrvOpenCfm(EgtpSrvOpenCfm func, Buffer *mBuf)
 {
    CmStatus cfm;
     
-   memset((uint8_t *)&cfm, 0, sizeof(CmStatus));
+   memset(&cfm, 0, sizeof(CmStatus));
    unpackEgtpCfmStatus(&cfm, mBuf);
 
    return ((*func)(cfm));
@@ -399,7 +399,7 @@ uint8_t unpackEgtpTnlMgmtReq(EgtpTnlMgmtReq func, Pst *pst, Buffer *mBuf)
 {
    EgtpTnlEvt tnlEvt;
 
-   memset((uint8_t *)&tnlEvt, 0, sizeof(EgtpTnlEvt));
+   memset(&tnlEvt, 0, sizeof(EgtpTnlEvt));
 
    oduPackUInt32(&(tnlEvt.remTeid), mBuf);
    oduPackUInt32(&(tnlEvt.lclTeid), mBuf);
@@ -471,7 +471,7 @@ uint8_t unpackEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf)
 {
    EgtpTnlEvt tnlEvt;
  
-   memset((uint8_t *)&tnlEvt, 0, sizeof(EgtpTnlEvt));
+   memset(&tnlEvt, 0, sizeof(EgtpTnlEvt));
 
    unpackEgtpCfmStatus(&(tnlEvt.cfmStatus), mBuf); 
    oduPackUInt32(&(tnlEvt.remTeid), mBuf);
@@ -484,21 +484,21 @@ uint8_t unpackEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf)
 
 /*******************************************************************
  *
- * @brief Packs Slot indication and sends to EGTP
+ * @brief Packs Polling requesting and sends to EGTP
  *
  * @details
  *
- *    Function : packEgtpSlotInd
+ *    Function : packEgtpStartPollingReq
  *
  *    Functionality:
- *       Packs slot indication and sends tp EGTP
+ *       Packs polling request and sends to EGTP
  *
  * @params[in] Post structure
  * @return ROK     - success
  *         RFAILED - failure
  *
  *******************************************************************/
-uint8_t packEgtpSlotInd(Pst *pst)
+uint8_t packEgtpStartPollingReq(Pst *pst)
 {
    Buffer *mBuf;
 
@@ -510,26 +510,8 @@ uint8_t packEgtpSlotInd(Pst *pst)
 
    ODU_POST_TASK(pst, mBuf);
    return ROK;
 }
 
-/*******************************************************************
- *
- * @brief Unpacks slot indication
- *
- * @details
- *
- *    Function : unpackEgtpSlotInd
- *
- *    Functionality:
- *       Unpacks slot indication
- *
- * @params[in]
- * @return ROK     - success
- *         RFAILED - failure
- *
-******************************************************************/
-uint8_t unpackEgtpSlotInd(EgtpSlotInd func, Pst *pst, Buffer *mBuf)
-{
-    return ((*func)());
-}
+/**********************************************************************
+         End of file
+**********************************************************************/