Ron Shacham | 3ebf932 | 2020-07-20 10:44:37 -0400 | [diff] [blame^] | 1 | |
| 2 | #ifndef ENCODE_E2APV1_HPP |
| 3 | #define ENCODE_E2APV1_HPP |
| 4 | /* |
| 5 | #include <stdio.h> |
| 6 | #include <unistd.h> |
| 7 | #include <assert.h> |
| 8 | */ |
| 9 | |
| 10 | //#include <stdio> |
| 11 | //#include <unistd.h> |
| 12 | //#include <assert.h> |
| 13 | |
| 14 | //#include "e2sim_sctp.hpp" |
| 15 | //#include "e2ap_message_handler.hpp" |
| 16 | #include "encode_kpm.hpp" |
| 17 | |
| 18 | |
| 19 | extern "C" { |
| 20 | //#include "e2sim_defs.h" |
| 21 | #include "E2AP-PDU.h" |
| 22 | |
| 23 | |
| 24 | } |
| 25 | |
| 26 | long get_function_id_from_subscription(E2AP_PDU_t *e2ap_pdu); |
| 27 | |
| 28 | void buildSubsReq(E2AP_PDU_t *pdu); |
| 29 | |
| 30 | void generate_e2apv1_setup_request(E2AP_PDU_t *setup_req_pdu); |
| 31 | |
| 32 | void generate_e2apv1_setup_request_parameterized(E2AP_PDU_t *setup_req_pdu, long ranFuncId, uint8_t* ranFuncDesc, int ranFuncLength); |
| 33 | |
| 34 | void generate_e2apv1_setup_response(E2AP_PDU_t *setup_resp_pdu); |
| 35 | |
| 36 | void generate_e2apv1_subscription_request(E2AP_PDU_t *sub_req_pdu); |
| 37 | |
| 38 | void generate_e2apv1_subscription_response(E2AP_PDU_t *sub_resp_pdu, E2AP_PDU_t *sub_req_pdu); |
| 39 | |
| 40 | void generate_e2apv1_indication_request(E2AP_PDU_t *ind_req_pdu); |
| 41 | |
| 42 | void generate_e2apv1_subscription_response_success(E2AP_PDU *e2ap_pdu, long reqActionIdsAccepted[], long reqActionIdsRejected[], int accept_size, int reject_size, long reqRequestorId, long reqInstanceId); |
| 43 | |
| 44 | void generate_e2apv1_indication_request_parameterized(E2AP_PDU *e2ap_pdu, long requestorId, long instanceId, long ranFunctionId, long actionId, long seqNum, uint8_t *ind_header_buf, int header_length, uint8_t *ind_message_buf, int message_length); |
| 45 | |
| 46 | #endif |