X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_tkns.h;fp=src%2Fcm%2Fcm_tkns.h;h=dfbcacef346bdbc436a06b172b38bef97e95d426;hb=49856df248fd976b4a9882ca4e650fc0bc3e4ee3;hp=58916e4f6963b793cd6757b5b8de82df6e16b595;hpb=e54c2aae19e97065def9e5ab2d1488477b1ea209;p=o-du%2Fl2.git diff --git a/src/cm/cm_tkns.h b/src/cm/cm_tkns.h index 58916e4f6..dfbcacef3 100755 --- a/src/cm/cm_tkns.h +++ b/src/cm/cm_tkns.h @@ -55,15 +55,15 @@ /* Value */ \ for (i = 0; i < (S16) len; i++) \ { \ - CMCHKPK(oduUnpackUInt8, tknStr->val[i], mBuf); \ + CMCHKPK(oduPackUInt8, tknStr->val[i], mBuf); \ } \ \ /* Length */ \ - CMCHKPK(oduUnpackUInt8, tknStr->len, mBuf); \ + CMCHKPK(oduPackUInt8, tknStr->len, mBuf); \ } \ \ /* Token Header */ \ - CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf); \ + CMCHKPK(oduPackUInt8, tknStr->pres, mBuf); \ } #define CMUNPKTKNBSTR(tknStr, mBuf) \ @@ -72,12 +72,12 @@ Cntr len; \ \ /* Token Header */ \ - CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf); \ + CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf); \ \ if(tknStr->pres) \ { \ /* Length */ \ - CMCHKUNPK(oduPackUInt8, &tknStr->len, mBuf); \ + CMCHKUNPK(oduUnpackUInt8, &tknStr->len, mBuf); \ \ if (tknStr->len % 8) \ len = (tknStr->len/8 ) + 1; \ @@ -87,7 +87,7 @@ /* Value */ \ for (i = 1; i <= (S16) len; i++) \ { \ - CMCHKUNPK(oduPackUInt8, &tknStr->val[len - i], mBuf); \ + CMCHKUNPK(oduUnpackUInt8, &tknStr->val[len - i], mBuf); \ } \ } \ \