Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Replaced old SSI function with new macros jira id - ODUHIGH-212
[o-du/l2.git]
/
src
/
ric_stub
/
ric_stub_sctp.c
diff --git
a/src/ric_stub/ric_stub_sctp.c
b/src/ric_stub/ric_stub_sctp.c
index
a32a9b3
..
d4453ca
100644
(file)
--- a/
src/ric_stub/ric_stub_sctp.c
+++ b/
src/ric_stub/ric_stub_sctp.c
@@
-18,13
+18,17
@@
/* This file contains all SCTP related functionality */
/* This file contains all SCTP related functionality */
-#include
<stdio.h>
+#include
"common_def.h"
#include "ric_e2ap_msg_hdl.h"
#include "ric_stub_sctp.h"
#include "ric_e2ap_msg_hdl.h"
#include "ric_stub_sctp.h"
+#include "ric_stub.h"
+#include "E2AP-PDU.h"
+#include "du_log.h"
CuSctpDestCb ricParams;
CuSctpDestCb ricParams;
-
-
+RicSctpParams sctpCfg;
+S16 fillAddrLst(CmInetNetAddrLst *addrLstPtr, SctpIpAddr *ipAddr);
+S16 fillDestNetAddr(CmInetNetAddr *destAddrPtr, SctpIpAddr *dstIpPtr);
/**************************************************************************
* @brief Function to configure the Sctp Params during config Request
*
/**************************************************************************
* @brief Function to configure the Sctp Params during config Request
*
@@
-147,7
+151,7
@@
S16 sctpStartReq()
{
DU_LOG("\nSCTP: Polling failed to start at RIC");
}
{
DU_LOG("\nSCTP: Polling failed to start at RIC");
}
-
RETVALUE
(ret);
+
return
(ret);
}
/*******************************************************************
*
}
/*******************************************************************
*
@@
-184,7
+188,7
@@
S16 sctpSetSockOpts(CmInetFd *sock_Fd)
ret = RFAILED;
}
ret = RFAILED;
}
-
RETVALUE
(ret);
+
return
(ret);
}
/*******************************************************************
}
/*******************************************************************
@@
-373,7
+377,7
@@
S16 sctpSockPoll()
DU_LOG("\nSCTP : Failed to RecvMsg for E2 at RIC \n");
}
};
DU_LOG("\nSCTP : Failed to RecvMsg for E2 at RIC \n");
}
};
-
RETVALUE
(ret);
+
return
(ret);
}/* End of sctpSockPoll() */
/*******************************************************************
}/* End of sctpSockPoll() */
/*******************************************************************
@@
-426,11
+430,11
@@
S16 processPolling(sctpSockPollParams *pollParams, CmInetFd *sockFd, U32 *timeou
else if(connUp & (pollParams->port == ricParams.destPort))
{
E2APMsgHdlr(pollParams->mBuf);
else if(connUp & (pollParams->port == ricParams.destPort))
{
E2APMsgHdlr(pollParams->mBuf);
-
SPutMsg
(pollParams->mBuf);
+
ODU_PUT_MSG
(pollParams->mBuf);
}
else
{
}
else
{
-
SPutMsg
(pollParams->mBuf);
+
ODU_PUT_MSG
(pollParams->mBuf);
}
}
}
}
}
}