Updated IP and Port configurations
[o-du/l2.git] / src / cm / cm_inet.c
index 7f2142c..cd12a0a 100644 (file)
@@ -152,6 +152,7 @@ extern "C" {
 #ifdef NTL_LIB
 #include "ntl_lib.h"
 #endif 
+#include "du_log.h"
 
 \f  
 /* local defines */
@@ -1857,6 +1858,8 @@ U16                port;         /* port number */
 #else
    /* linux */
    ret = sctp_bindx(sockFd->fd, (struct sockaddr*)address_array, addrLst->count, SCTP_BINDX_ADD_ADDR); 
+       UNUSED(sockAddrPtr);
+       UNUSED(sockAddrLen);
 #endif
    if (ret == INET_ERR)
    {
@@ -2294,10 +2297,8 @@ U16                port;         /* port number */
             " sockFd->fd(%ld)\n", INET_ERR_CODE, port, sockFd->fd);
       CMINETLOGERROR(ERRCLS_DEBUG, ECMINET010, 0, prntBuf);
 #else
-      /* cm_inet_c_001.main_62:Warning fix */
-      snprintf(prntBuf, CMINET_PRNT_BUF_SIZE, "CmInetSctpConnectx() Failed : error(%d), port(0x%1x),"
-            " sockFd->fd(%d)\n", INET_ERR_CODE, port, sockFd->fd);
-      CMINETLOGERROR(ERRCLS_DEBUG, ECMINET010, 0, prntBuf);
+      DU_LOG("\nCmInetSctpConnectx() Failed : error(%d), port(0x%1x),\
+                  sockFd->fd(%d)\n", INET_ERR_CODE, port, sockFd->fd);
 #endif /*ALIGN_64BIT*/
 #endif /* CMINETDBG */
 
@@ -2776,10 +2777,8 @@ CmInetSctpNotification *ntfy;         /* notification parameters */
             " sockFd->fd(%ld)\n", INET_ERR_CODE, sockFd->fd);
       CMINETLOGERROR(ERRCLS_DEBUG, ECMINET014, 0, prntBuf);
 #else
-      /* cm_inet_c_001.main_62:Warning fix */
-      snprintf(prntBuf, CMINET_PRNT_BUF_SIZE, "cmInetSctpRecvMsg() Failed : error(%d),"
-            " sockFd->fd(%d)\n",  INET_ERR_CODE, sockFd->fd);
-      CMINETLOGERROR(ERRCLS_DEBUG, ECMINET014, 0, prntBuf);
+      DU_LOG("\ncmInetSctpRecvMsg() Failed : error(%d), sockFd->fd(%d)", \
+         INET_ERR_CODE, sockFd->fd);
 #endif /*ALIGN_64BIT*/
 #endif /* CMINETDBG */
 
@@ -3366,12 +3365,14 @@ Ptr       value;                /* option value */
          if (status.sstat_primary.spinfo_state == SCTP_ACTIVE)
              pSctpStatus->primary.isActive = TRUE;
          else
+                       {
              pSctpStatus->primary.isActive = FALSE;
              pSctpStatus->primary.cwnd = status.sstat_primary.spinfo_cwnd;
              pSctpStatus->primary.srtt = status.sstat_primary.spinfo_srtt;
              pSctpStatus->primary.rto  = status.sstat_primary.spinfo_rto;
              pSctpStatus->primary.mtu  = status.sstat_primary.spinfo_mtu;
-         break;
+         }
+                       break;
 
       case CM_INET_OPT_SCTP_GET_PADDR_INFO:
          pPeerAddrInfo = (CmInetSctpPeerAddrInfo*)value;