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
[JIRA ID - ODUHIGH-275] Part -4 classifying of logs of sch folder
[o-du/l2.git]
/
src
/
cm
/
lsctp.c
diff --git
a/src/cm/lsctp.c
b/src/cm/lsctp.c
index
68286bb
..
1641bc4
100644
(file)
--- a/
src/cm/lsctp.c
+++ b/
src/cm/lsctp.c
@@
-17,10
+17,8
@@
*******************************************************************************/
/* This file contains DU APP and SCTP interface functions */
*******************************************************************************/
/* This file contains DU APP and SCTP interface functions */
-
-#include "du_mgr.h"
-#include "du_sctp.h"
-
+#include "common_def.h"
+#include "lsctp.h"
/*******************************************************************
*
/*******************************************************************
*
@@
-39,30
+37,30
@@
*
* ****************************************************************/
*
* ****************************************************************/
-
S16
cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
+
uint8_t
cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
{
Buffer *mBuf;
{
Buffer *mBuf;
- if(
SGetMsg(DU_APP_MEM_REGION, DU_POOL
, &mBuf) != ROK)
+ if(
ODU_GET_MSG_BUF(pst->region, pst->pool
, &mBuf) != ROK)
{
printf("\nSCTP : Failed to allocate memory");
{
printf("\nSCTP : Failed to allocate memory");
-
RETVALUE(RFAILED)
;
+
return RFAILED
;
}
if(ntfy->header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
}
if(ntfy->header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
-
SPkU
16(ntfy->u.assocChange.state, mBuf);
-
SPkU16
(ntfy->u.assocChange.assocId, mBuf);
+
oduUnpackUInt
16(ntfy->u.assocChange.state, mBuf);
+
oduUnpackUInt32
(ntfy->u.assocChange.assocId, mBuf);
}
}
-
SPkU
16(ntfy->header.nType, mBuf);
+
oduUnpackUInt
16(ntfy->header.nType, mBuf);
- if (
SPstTsk
(pst, mBuf) != ROK)
+ if (
ODU_POST_TASK
(pst, mBuf) != ROK)
{
{
- printf("\nSCTP :
SPstTsk
failed while sending SCTP notification");
-
RETVALUE(RFAILED)
;
+ printf("\nSCTP :
ODU_POST_TASK
failed while sending SCTP notification");
+
return RFAILED
;
}
}
-
RETVALUE(ROK)
;
+
return ROK
;
}
/*******************************************************************
}
/*******************************************************************
@@
-82,19
+80,19
@@
S16 cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
*
* ****************************************************************/
*
* ****************************************************************/
-
S16
cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf)
+
uint8_t
cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf)
{
CmInetSctpNotification ntfy;
{
CmInetSctpNotification ntfy;
-
cmMemset((U8*)
&ntfy, 0, sizeof(CmInetSctpNotification));
+
memset(
&ntfy, 0, sizeof(CmInetSctpNotification));
-
SUnpkU
16(&(ntfy.header.nType), mBuf);
+
oduPackUInt
16(&(ntfy.header.nType), mBuf);
if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
-
SUnpkU16
(&(ntfy.u.assocChange.assocId), mBuf);
-
SUnpkU
16(&(ntfy.u.assocChange.state), mBuf);
+
oduPackUInt32
(&(ntfy.u.assocChange.assocId), mBuf);
+
oduPackUInt
16(&(ntfy.u.assocChange.state), mBuf);
}
}
-
RETVALUE
((*func)(mBuf, &ntfy));
+
return
((*func)(mBuf, &ntfy));
}
/**********************************************************************
}
/**********************************************************************