-/*
-void generate_e2apv1_indication_request(E2AP_PDU *e2ap_pdu) {
- fprintf(stderr, "ind1\n");
- RICindication_IEs_t *ricind_ies = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
- RICindication_IEs_t *ricind_ies2 = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
- RICindication_IEs_t *ricind_ies3 = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
- RICindication_IEs_t *ricind_ies4 = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
- RICindication_IEs_t *ricind_ies5 = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
- RICindication_IEs_t *ricind_ies6 = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
- RICindication_IEs_t *ricind_ies7 = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
- RICindication_IEs_t *ricind_ies8 = (RICindication_IEs_t*)calloc(1, sizeof(RICindication_IEs_t));
-
- RICindication_IEs__value_PR pres3;
-
- pres3 = RICindication_IEs__value_PR_RICrequestID;
- ricind_ies->id = ProtocolIE_ID_id_RICrequestID;
- ricind_ies->criticality = 0;
- ricind_ies->value.present = pres3;
- ricind_ies->value.choice.RICrequestID.ricRequestorID = 25;
- ricind_ies->value.choice.RICrequestID.ricInstanceID = 3;
-
- fprintf(stderr, "ind2\n");
-
- pres3 = RICindication_IEs__value_PR_RANfunctionID;
- ricind_ies2->id = ProtocolIE_ID_id_RANfunctionID;
- ricind_ies2->criticality = 0;
- ricind_ies2->value.present = pres3;
- ricind_ies2->value.choice.RANfunctionID = 70;
-
-
- ricind_ies3->id = ProtocolIE_ID_id_RICactionID;
- ricind_ies3->criticality = 0;
- pres3 = RICindication_IEs__value_PR_RICactionID;
- ricind_ies3->value.present = pres3;
- ricind_ies3->value.choice.RICactionID = 80;
-
-
- pres3 = RICindication_IEs__value_PR_RICindicationSN;
- ricind_ies4->id = ProtocolIE_ID_id_RICindicationSN;
- ricind_ies4->criticality = 0;
- ricind_ies4->value.present = pres3;
- ricind_ies4->value.choice.RICindicationSN = 45;
-
- pres3 = RICindication_IEs__value_PR_RICindicationType;
- ricind_ies5->id = ProtocolIE_ID_id_RICindicationType;
- ricind_ies5->criticality = 0;
- ricind_ies5->value.present = pres3;
- ricind_ies5->value.choice.RICindicationType = 0;
-
-
- uint8_t *buf2 = (uint8_t *)"reportheader";
- OCTET_STRING_t *hdr_str = (OCTET_STRING_t*)calloc(1,sizeof(OCTET_STRING_t));
- hdr_str->buf = (uint8_t*)calloc(1,12);
- hdr_str->size = 12;
- memcpy(hdr_str->buf, buf2, 12);
-
- fprintf(stderr, "ind3\n");
-
- ricind_ies6->value.choice.RICindicationHeader.buf = (uint8_t*)calloc(1,12);
-
- pres3 = RICindication_IEs__value_PR_RICindicationHeader;
- ricind_ies6->id = ProtocolIE_ID_id_RICindicationHeader;
- ricind_ies6->criticality = 0;
- ricind_ies6->value.present = pres3;
- ricind_ies6->value.choice.RICindicationHeader.size = 12;
- memcpy(ricind_ies6->value.choice.RICindicationHeader.buf, buf2, 12);
-
- ricind_ies7->value.choice.RICindicationMessage.buf = (uint8_t*)calloc(1,8192);
-
-
-
- E2SM_KPM_RANfunction_Description_t *e2sm_desc =
- (E2SM_KPM_RANfunction_Description_t*)calloc(1,sizeof(E2SM_KPM_RANfunction_Description_t));
-
- encode_kpm_function_description(e2sm_desc);
-
-
- uint8_t e2smbuffer[8192];
- size_t e2smbuffer_size = 8192;
-
- asn_codec_ctx_t *opt_cod;
-
-
- asn_enc_rval_t er =
- asn_encode_to_buffer(opt_cod,
- ATS_ALIGNED_BASIC_PER,
- &asn_DEF_E2SM_KPM_RANfunction_Description,
- e2sm_desc, e2smbuffer, e2smbuffer_size);
-
-
- fprintf(stderr, "er encded is %d\n", er.encoded);
- fprintf(stderr, "after encoding message\n");
-
- OCTET_STRING_t *msg_str = (OCTET_STRING_t*)calloc(1,sizeof(OCTET_STRING_t));
- msg_str->buf = (uint8_t*)calloc(1,er.encoded);
- msg_str->size = er.encoded;
- memcpy(msg_str->buf, e2smbuffer, er.encoded);
-
-
- pres3 = RICindication_IEs__value_PR_RICindicationMessage;
- ricind_ies7->id = ProtocolIE_ID_id_RICindicationMessage;
- fprintf(stderr, "after encoding message 1\n");
-
- ricind_ies7->criticality = 0;
- ricind_ies7->value.present = pres3;
-
- fprintf(stderr, "after encoding message 2\n");
-
- fprintf(stderr, "after encoding message 3\n");
- ricind_ies7->value.choice.RICindicationMessage.size = er.encoded;
-
- fprintf(stderr, "after encoding message 4\n");
- memcpy(ricind_ies7->value.choice.RICindicationMessage.buf, e2smbuffer, er.encoded);
-
- fprintf(stderr, "after encoding message 5\n");
-
- uint8_t *buf4 = (uint8_t *)"cpid";
- OCTET_STRING_t cpid_str;
- cpid_str.buf = buf4;
- cpid_str.size = 4;
-
-
- pres3 = RICindication_IEs__value_PR_RICcallProcessID;
- ricind_ies8->id = ProtocolIE_ID_id_RICcallProcessID;
-
- ricind_ies8->criticality = 0;
- ricind_ies8->value.present = pres3;
-
- ricind_ies8->value.choice.RICcallProcessID = cpid_str;
-
-
- RICindication_t *ricindication = (RICindication_t*)calloc(1, sizeof(RICindication_t));
-
-
- int ret;
-*/
- /*
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies);
-
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies2);
-
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies3);
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies4);
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies5);
-
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies6);
- */
-/*
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies7);
-
- ret = ASN_SEQUENCE_ADD(&ricindication->protocolIEs.list, ricind_ies8);
-
-
- InitiatingMessage__value_PR pres4;
- pres4 = InitiatingMessage__value_PR_RICindication;
- InitiatingMessage_t *initmsg = (InitiatingMessage_t*)calloc(1, sizeof(InitiatingMessage_t));
- initmsg->procedureCode = 5;
- initmsg->criticality = 1;
- initmsg->value.present = pres4;
- initmsg->value.choice.RICindication = *ricindication;
-
- E2AP_PDU_PR pres5;
- pres5 = E2AP_PDU_PR_initiatingMessage;
-
- e2ap_pdu->present = pres5;
- e2ap_pdu->choice.initiatingMessage = initmsg;
-
- char *error_buf = (char*)calloc(300, sizeof(char));;
- size_t errlen;
-
- asn_check_constraints(&asn_DEF_E2AP_PDU, e2ap_pdu, error_buf, &errlen);
- printf("error length %d\n", errlen);
- printf("error buf %s\n", error_buf);
-
- xer_fprint(stderr, &asn_DEF_E2AP_PDU, e2ap_pdu);
-}
-*/