X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Flsctp.c;h=95f7bbdfa30619ff1a91bea8c4142b711da2e71a;hb=45d134510deb6902b870b4a0fb574b6075fba601;hp=68286bbeaf1d7d9085c26bc4a7399f6ce4019139;hpb=ef711b0830aedde36f4a1beceed146d08e77ce58;p=o-du%2Fl2.git diff --git a/src/cm/lsctp.c b/src/cm/lsctp.c index 68286bbea..95f7bbdfa 100644 --- a/src/cm/lsctp.c +++ b/src/cm/lsctp.c @@ -17,10 +17,8 @@ *******************************************************************************/ /* 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; - 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); @@ -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); - SPkU16(ntfy->u.assocChange.assocId, mBuf); + SPkU32(ntfy->u.assocChange.assocId, 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.u.assocChange.assocId), mBuf); + SUnpkU32(&(ntfy.u.assocChange.assocId), mBuf); SUnpkU16(&(ntfy.u.assocChange.state), mBuf); }