-
- MeasurementInfoList_t* measList =
- (MeasurementInfoList_t*)calloc(1, sizeof(MeasurementInfoList_t));
- MeasurementInfoItem_t* measItem =
- (MeasurementInfoItem_t*)calloc(1, sizeof(MeasurementInfoItem_t));
- LabelInfoList_t* labelList = (LabelInfoList_t*)calloc(1, sizeof(LabelInfoList_t));
- LabelInfoItem_t* labelItem = (LabelInfoItem_t*)calloc(1, sizeof(LabelInfoItem_t));
- MeasurementLabel_t* measLabel = (MeasurementLabel_t*)calloc(1, sizeof(MeasurementLabel_t));
-
- uint8_t* plmnid_buf = (uint8_t*)"747";
- uint8_t* sst_buf = (uint8_t*)"1";
- uint8_t* sd_buf = (uint8_t*)"100";
-
- S_NSSAI_t* snssai = (S_NSSAI_t*)calloc(1, sizeof(S_NSSAI_t));
- snssai->sST.buf = (uint8_t*)calloc(strlen((char*)sst_buf), sizeof(uint8_t));
- snssai->sST.size = strlen((char*)sst_buf);
- memcpy(snssai->sST.buf, sst_buf, strlen((char*)sst_buf));
-
- snssai->sD = (SD_t*)calloc(1, sizeof(SD_t));
- snssai->sD->buf = (uint8_t*)calloc(strlen((char*)sd_buf), sizeof(uint8_t));
- snssai->sD->size = strlen((char*)sd_buf);
- memcpy(snssai->sD->buf, sd_buf, strlen((char*)sd_buf));
-
- int plmnid_size = strlen((char*)plmnid_buf);
- PLMNIdentity_t* plmnidstr = (PLMNIdentity_t*)calloc(1, sizeof(PLMNIdentity_t));
- plmnidstr->buf = (uint8_t*)calloc(plmnid_size, 1);
- plmnidstr->size = plmnid_size;
- memcpy(plmnidstr->buf, plmnid_buf, plmnidstr->size);
-
- measLabel->plmnID = plmnidstr;
- measLabel->sliceID = snssai;
-
- labelItem->measLabel = *measLabel;
- ASN_SEQUENCE_ADD(&labelList->list, labelItem);
- measItem->labelInfoList = *labelList;
- if (labelList) free(labelList);
- MeasurementType_t measType;
- measType.present = MeasurementType_PR_measID;
- measType.choice.measID = 1;
- measItem->measType = measType;
- ASN_SEQUENCE_ADD(&measList->list, measItem);
-