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
MAC Clean-up [Issue-ID: ODUHIGH-212]
[o-du/l2.git]
/
src
/
cm
/
lsctp.c
diff --git
a/src/cm/lsctp.c
b/src/cm/lsctp.c
index
68286bb
..
95f7bbd
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"
/*******************************************************************
*
/*******************************************************************
*
@@
-43,7
+41,7
@@
S16 cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
{
Buffer *mBuf;
{
Buffer *mBuf;
- if(SGetMsg(
DU_APP_MEM_REGION, DU_POOL
, &mBuf) != ROK)
+ if(SGetMsg(
pst->region, pst->pool
, &mBuf) != ROK)
{
printf("\nSCTP : Failed to allocate memory");
RETVALUE(RFAILED);
{
printf("\nSCTP : Failed to allocate memory");
RETVALUE(RFAILED);
@@
-52,7
+50,7
@@
S16 cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
if(ntfy->header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
SPkU16(ntfy->u.assocChange.state, mBuf);
if(ntfy->header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
SPkU16(ntfy->u.assocChange.state, mBuf);
- SPkU
16
(ntfy->u.assocChange.assocId, mBuf);
+ SPkU
32
(ntfy->u.assocChange.assocId, mBuf);
}
SPkU16(ntfy->header.nType, mBuf);
}
SPkU16(ntfy->header.nType, mBuf);
@@
-90,7
+88,7
@@
S16 cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf)
SUnpkU16(&(ntfy.header.nType), mBuf);
if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
SUnpkU16(&(ntfy.header.nType), mBuf);
if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
- SUnpkU
16
(&(ntfy.u.assocChange.assocId), mBuf);
+ SUnpkU
32
(&(ntfy.u.assocChange.assocId), mBuf);
SUnpkU16(&(ntfy.u.assocChange.state), mBuf);
}
SUnpkU16(&(ntfy.u.assocChange.state), mBuf);
}