if(ntfy->header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
- oduUnpackUInt16(ntfy->u.assocChange.state, mBuf);
- oduUnpackUInt32(ntfy->u.assocChange.assocId, mBuf);
+ oduPackUInt16(ntfy->u.assocChange.state, mBuf);
+ oduPackUInt32(ntfy->u.assocChange.assocId, mBuf);
}
- oduUnpackUInt16(ntfy->header.nType, mBuf);
+ oduPackUInt16(ntfy->header.nType, mBuf);
if (ODU_POST_TASK(pst, mBuf) != ROK)
{
CmInetSctpNotification ntfy;
memset(&ntfy, 0, sizeof(CmInetSctpNotification));
- oduPackUInt16(&(ntfy.header.nType), mBuf);
+ oduUnpackUInt16(&(ntfy.header.nType), mBuf);
if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
- oduPackUInt32(&(ntfy.u.assocChange.assocId), mBuf);
- oduPackUInt16(&(ntfy.u.assocChange.state), mBuf);
+ oduUnpackUInt32(&(ntfy.u.assocChange.assocId), mBuf);
+ oduUnpackUInt16(&(ntfy.u.assocChange.state), mBuf);
}
return ((*func)(mBuf, &ntfy));