*******************************************************************************/
/* This file contains DU APP and SCTP interface functions */
-
-#include "du_sctp.h"
-
+#include "common_def.h"
+#include "lsctp.h"
/*******************************************************************
*
{
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);
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);
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);
}