- E2AP_PDU_t* pdu = (E2AP_PDU_t*)calloc(1,sizeof(E2AP_PDU));
-
- LOG_D("about to call E2ResetRequest encode\n");
-
- encoding::generate_e2apv2_reset_request(pdu);
-
- LOG_D("[E2AP] Created E2ResetRequest");
-
- e2ap_asn1c_print_pdu(pdu);
-
- sctp_buffer_t resetdata;
-
- error_buf[300] = {0, };
- errlen = 0;
-
- asn_check_constraints(&asn_DEF_E2AP_PDU, pdu, error_buf, &errlen);
- printf("error length %d\n", errlen);
- printf("error buf %s\n", error_buf);
- er = asn_encode_to_buffer(nullptr, ATS_ALIGNED_BASIC_PER, &asn_DEF_E2AP_PDU, pdu, buffer, buffer_size);
-
- resetdata.len = er.encoded;
- fprintf(stderr, "er encoded is %d\n", er.encoded);
-
- memcpy(resetdata.buffer, buffer, er.encoded);
-
- LOG_I("Test to delete ReSet code");