*******************************************************************************/
/* This file contains all SCTP related functionality */
-
-#include <stdio.h>
+#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.
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);
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);
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;
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)
{