X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ric_benchmarking%2Fe2-interface%2Fe2sim%2Fprevious%2Fe2apv1sim%2Fe2sim%2Fencode_e2apv1.hpp;fp=ric_benchmarking%2Fe2-interface%2Fe2sim%2Fprevious%2Fe2apv1sim%2Fe2sim%2Fencode_e2apv1.hpp;h=c072c65cb72a46181d00e3dd9bb5e172773a3fbe;hb=c84cf647bef80dd1f3766890d4215e85725ae85a;hp=0000000000000000000000000000000000000000;hpb=0d26f300d5f9da0aa23612b8a4a9e863423d598b;p=it%2Ftest.git diff --git a/ric_benchmarking/e2-interface/e2sim/previous/e2apv1sim/e2sim/encode_e2apv1.hpp b/ric_benchmarking/e2-interface/e2sim/previous/e2apv1sim/e2sim/encode_e2apv1.hpp new file mode 100644 index 0000000..c072c65 --- /dev/null +++ b/ric_benchmarking/e2-interface/e2sim/previous/e2apv1sim/e2sim/encode_e2apv1.hpp @@ -0,0 +1,75 @@ +/***************************************************************************** +# * +# Copyright 2019 AT&T Intellectual Property * +# Copyright 2019 Nokia * +# Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved. * +# * +# Licensed under the Apache License, Version 2.0 (the "License"); * +# you may not use this file except in compliance with the License. * +# You may obtain a copy of the License at * +# * +# http://www.apache.org/licenses/LICENSE-2.0 * +# * +# Unless required by applicable law or agreed to in writing, software * +# distributed under the License is distributed on an "AS IS" BASIS, * +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * +# See the License for the specific language governing permissions and * +# limitations under the License. * +# * +******************************************************************************/ + +#ifndef ENCODE_E2APV1_HPP +#define ENCODE_E2APV1_HPP +/* +#include +#include +#include +*/ + +//#include +//#include +//#include +#include + +//#include "e2sim_sctp.hpp" +//#include "e2ap_message_handler.hpp" +#include "encode_kpm.hpp" + + +extern "C" { + //#include "e2sim_defs.h" +#include "E2AP-PDU.h" + + +} + +struct ran_func_info { + long ranFunctionId; + OCTET_STRING_t *ranFunctionDesc; + long ranFunctionRev; +}; + +long get_function_id_from_subscription(E2AP_PDU_t *e2ap_pdu); + +void buildSubsReq(E2AP_PDU_t *pdu); + +void generate_e2apv1_setup_request(E2AP_PDU_t *setup_req_pdu); + +//void generate_e2apv1_setup_request_parameterized(E2AP_PDU_t *setup_req_pdu, long ranFuncId, uint8_t* ranFuncDesc, int ranFuncLength); +void generate_e2apv1_setup_request_parameterized(E2AP_PDU_t *setup_req_pdu, std::vector all_funcs); + +void generate_e2apv1_setup_response(E2AP_PDU_t *setup_resp_pdu); + +void generate_e2apv1_subscription_request(E2AP_PDU_t *sub_req_pdu); + +void generate_e2apv1_subscription_response(E2AP_PDU_t *sub_resp_pdu, E2AP_PDU_t *sub_req_pdu); + +void generate_e2apv1_indication_request(E2AP_PDU_t *ind_req_pdu); + +void generate_e2apv1_subscription_response_success(E2AP_PDU *e2ap_pdu, long reqActionIdsAccepted[], long reqActionIdsRejected[], int accept_size, int reject_size, long reqRequestorId, long reqInstanceId); + +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); + +void generate_e2apv1_service_update(E2AP_PDU_t *e2ap_pdu); + +#endif