X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fcm%2Flsctp.c;h=3d7895e49fc3ab86069f808e4acdef3f0f9e2f4a;hb=refs%2Fchanges%2F49%2F12949%2F3;hp=12f673dcd73fd9b344fbc17c57496074e39de089;hpb=834004e09017b5b86cb738be98a7a1be79c0a9b0;p=o-du%2Fl2.git diff --git a/src/cm/lsctp.c b/src/cm/lsctp.c index 12f673dcd..3d7895e49 100644 --- a/src/cm/lsctp.c +++ b/src/cm/lsctp.c @@ -49,10 +49,10 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy) 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) { @@ -85,11 +85,11 @@ uint8_t cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf) 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));