1 /*****************************************************************************
3 # Copyright 2019 AT&T Intellectual Property *
4 # Copyright 2019 Nokia *
6 # Licensed under the Apache License, Version 2.0 (the "License"); *
7 # you may not use this file except in compliance with the License. *
8 # You may obtain a copy of the License at *
10 # http://www.apache.org/licenses/LICENSE-2.0 *
12 # Unless required by applicable law or agreed to in writing, software *
13 # distributed under the License is distributed on an "AS IS" BASIS, *
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15 # See the License for the specific language governing permissions and *
16 # limitations under the License. *
18 ******************************************************************************/
27 #include "e2ap_config.hpp"
29 typedef struct c__dummy01 e2ap_pdu_t;
31 /*-----------------------------------------------------------------------
33 -------------------------------------------------------------------------
35 e2ap_pdu_t* new_e2ap_pdu(void);
37 void e2ap_asn_print(e2ap_pdu_t* pdu, char* buf, size_t buf_size);
39 int e2ap_asn_per_encode(e2ap_pdu_t* pdu, unsigned char* buf, size_t buf_size,
40 char* err_buf, size_t err_buf_size);
42 int e2ap_asn_per_decode(e2ap_pdu_t* pdu, unsigned char const* buf, size_t buf_size,
43 char* err_buf, size_t err_buf_size);
45 int e2ap_get_index(e2ap_pdu_t* pdu);
47 int e2ap_get_procedureCode(e2ap_pdu_t* pdu);
49 /*-----------------------------------------------------------------------
51 -------------------------------------------------------------------------
55 bool e2ap_init_X2SetupRequest(e2ap_pdu_t* pdu);
57 bool e2ap_create_X2SetupRequest(e2ap_pdu_t* pdu, eNB_config &cfg);
59 bool e2ap_create_X2SetupResponse(e2ap_pdu_t* pdu, eNB_config &cfg);
61 bool e2ap_create_X2SetupFailure(e2ap_pdu_t* pdu);
64 bool e2ap_create_ENDCX2SetupRequest(e2ap_pdu_t* pdu, eNB_config &cfg);
66 bool e2ap_create_ENDCX2SetupResponse(e2ap_pdu_t* pdu, gNB_config &cfg);
68 bool e2ap_create_ENDCX2SetupFailure(e2ap_pdu_t* pdu);
71 bool e2ap_create_RICsubscriptionRequest(e2ap_pdu_t* pdu, RICsubscription_params_t ¶ms);
73 bool e2ap_parse_RICsubscriptionRequest(e2ap_pdu_t* pdu, RICsubscription_params_t ¶ms);
75 bool e2ap_create_RICsubscriptionResponse(e2ap_pdu_t* pdu, RICsubscription_params_t ¶ms);
77 bool e2ap_create_RICsubscriptionFailure(e2ap_pdu_t* pdu, RICsubscription_params_t ¶ms);
79 /*-----------------------------------------------------------------------
81 -------------------------------------------------------------------------
83 void test_E2AP_X2Setup_codec(void);