X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_inet.c;h=cd12a0a7295389e4607c0c4913f2b056546625df;hb=6c530e3037c009f3c4ec76a14128e89c7a9db0a3;hp=7f2142c8bcabd5ebfe394202182ca7e0726ae065;hpb=3235ecfc7414aa0b72d0ad50db63ae8b5626045b;p=o-du%2Fl2.git diff --git a/src/cm/cm_inet.c b/src/cm/cm_inet.c index 7f2142c8b..cd12a0a72 100644 --- a/src/cm/cm_inet.c +++ b/src/cm/cm_inet.c @@ -152,6 +152,7 @@ extern "C" { #ifdef NTL_LIB #include "ntl_lib.h" #endif +#include "du_log.h" /* 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;