X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_sctp.c;h=30e7bb75200be8fc7d770a27db3677f4d8f5d3d3;hb=5831bf6b3454aa200a92cd3e84209650734e4863;hp=25bccb37c2de4a90fe2c34232f5aed1ca7be23d7;hpb=bb8df345963bb5ef2e035ead7731c1171e4cbbe0;p=o-du%2Fl2.git diff --git a/src/du_app/du_sctp.c b/src/du_app/du_sctp.c index 25bccb37c..30e7bb752 100644 --- a/src/du_app/du_sctp.c +++ b/src/du_app/du_sctp.c @@ -17,11 +17,18 @@ *******************************************************************************/ /* This file contains all SCTP related functionality */ - -#include +#include "common_def.h" +#include "lrg.h" +#include "legtp.h" +#include "lrg.x" +#include "lkw.x" +#include "cm_inet.h" +#include "cm_inet.x" +#include "du_app_mac_inf.h" +#include "du_cfg.h" #include "du_sctp.h" #include "lsctp.h" - +#include "du_utils.h" /************************************************************************** * @brief Task Initiation callback function. @@ -329,7 +336,8 @@ S16 duSctpAssocReq(U8 itfType) CmStatus cfm; DuSctpDestCb *paramPtr = NULLP; - if(SGetSBuf(DU_APP_MEM_REGION, DU_POOL, (Data **)¶mPtr, (Size)sizeof(DuSctpDestCb)) != ROK) + DU_ALLOC(paramPtr, sizeof(DuSctpDestCb)); + if(paramPtr == NULLP) { printf("\nDU_APP : Failed to allocate memory"); RETVALUE(RFAILED); @@ -401,7 +409,7 @@ S16 duFillSctpPst(Pst *pst, Event event) pst->dstInst = (Inst)SCTP_INST; pst->dstProcId = pst->srcProcId; pst->event = event; - pst->selector = DU_SELECTOR_LC; + pst->selector = ODU_SELECTOR_LC; pst->pool= DU_POOL; SPstTsk(pst, mBuf); @@ -479,7 +487,7 @@ void sendToDuApp(Buffer *mBuf, Event event) pst.dstInst = (Inst)DU_INST; pst.dstProcId = pst.srcProcId; pst.event = event; - pst.selector = DU_SELECTOR_LC; + pst.selector = ODU_SELECTOR_LC; pst.pool= DU_POOL; pst.region = DFLT_REGION; @@ -577,9 +585,9 @@ S16 sctpNtfyHdlr(CmInetSctpNotification *ntfy, U8 *itfState) pst.dstInst = (Inst)DU_INST; pst.dstProcId = pst.srcProcId; pst.event = EVENT_SCTP_NTFY; - pst.selector = DU_SELECTOR_LC; + pst.selector = ODU_SELECTOR_LC; pst.pool= DU_POOL; - pst.region = DFLT_REGION; + pst.region = DU_APP_MEM_REGION; if(cmPkSctpNtfy(&pst, ntfy) != ROK) {