Commit 63a2fb06 authored by Robert Schmidt's avatar Robert Schmidt

Handle warnings regarding undeclared functions for dec, enc, sctp

parent 14298413
Branches unavailable
2023.w22 2023.w21 2023.w20 2023.w19 2023.w18 2023.w18b 2023.w16 2023.w15 2023.w14 2023.w13 2023.w12 2023.w11 2023.w11b 2023.w10 2023.w10b 2023.w09 2023.w08 2023.w08b 2023.w07 2023.w06 2023.w05 2023.w03 2023.w02 2022.42 2022.41 2022.w51 2022.w50 2022.w49 2022.w48 2022.w47 2022.w46 2022.w45 2022.w43 2022.w42 2022.w42b 2022.w41 2022.w40 2022.w39 2022.w38 2022.w37 2022.w37b 2022.w36 2022.w35 2022.w33 2022.w32 2022.w31 2022.w31b 2022.w30 2022.w29 2022.w26 2022.w25 2022.w24 2022.w24b 2022.w23 2022.w22 2022.w21 2022.w20 2022.w19 2022.w18 2022.w17 2022.w15 2022.w15b 2022.w14a 2022.w13 2022.w13b 2022.w13a 2022.w12 2022.w10 2022.w09 2022.w09b 2022.w08 2022.w08b 2022.w07 2022.w07b 2022.w06 2022.w06a 2022.w05 2022.w05b 2022.w03_hotfix 2022.w03_b 2022.w02 2022.w01 2021.wk46 2021.wk14_a 2021.wk13_d 2021.wk13_c 2021.w51_c 2021.w51_a 2021.w50_a 2021.w49_b 2021.w49_a 2021.w48 2021.w47 2021.w46 2021.w46-powder 2021.w45 2021.w45_b 2021.w44 2021.w43 2021.w42 2021.w37 2021.w36 2021.w35 2021.w34 2021.w33 2021.w32 2021.w31 2021.w30 2021.w29 2021.w28 2021.w27 2021.w26 2021.w25 2021.w24 2021.w23 2021.w22 2021.w20 2021.w19 2021.w18_b 2021.w18_a 2021.w17_b 2021.w16 2021.w15 2021.w14 2021.w13_a 2021.w12 2021.w11 2021.w10 2021.w09 2021.w08 2021.w06 2021.w05 2021.w04 2021.w02 2020.w51_2 2020.w51 2020.w50 2020.w49 2020.w48_2 2020.w48 2020.w47 2020.w46_2 2020.w46 2020.w45_2 2020.w45 2020.w44 2020.w42_2 2020.w42 2020.w41 2020.w39 2020.w38 2020.w37 2020.w36 2020.w34 2020.w33 2020.w31 2020.w30 2020.w29 2020.w28 2020.w26 2020.w25 2020.w24 2020.w23 2020.w22 2020.w19 2020.w17 2020.w16 2020.w15 2020.w11 2020.w09 2020.w06 2020.w05 2020.w04 2020.w03 2019.w51 2019.w44 2019.w41 2019.w36 2019.w30 2019.w28 2019.w27 2019.w25 2019.w23 2019.w21 2019.w17 2019.w15 2019.w13 v1.2.2 v1.2.1 v1.2.0 v1.1.1 v1.1.0 setparam nr-ip-over-lte-v.1.5 nr-ip-over-lte-v.1.4 nr-ip-over-lte-v.1.3 nr-ip-over-lte-v.1.2 nr-ip-over-lte-v.1.1 nr-ip-over-lte-v.1.0 flexran-eol develop-nr-2020w03 develop-nr-2020w02 develop-nr-2019w51 develop-nr-2019w50 develop-nr-2019w48 develop-nr-2019w47 develop-nr-2019w45 develop-nr-2019w43 develop-nr-2019w42 develop-nr-2019w40 benetel_phase_rotation benetel_gnb_rel_2.0 benetel_gnb_rel_1.0 benetel_enb_rel_2.0 benetel_enb_rel_1.0
No related merge requests found
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
#include "conversions.h" #include "conversions.h"
#include "f1ap_common.h" #include "f1ap_common.h"
#include "f1ap_messages_types.h" #include "f1ap_messages_types.h"
#include "f1ap_encoder.h"
#include "f1ap_decoder.h"
#include "sctp_cu.h"
#include "platform_types.h" #include "platform_types.h"
#include "log.h" #include "log.h"
......
...@@ -35,8 +35,7 @@ ...@@ -35,8 +35,7 @@
#include "f1ap_messages_types.h" #include "f1ap_messages_types.h"
#include "platform_types.h" #include "platform_types.h"
#include "common/utils/LOG/log.h" #include "common/utils/LOG/log.h"
#include "sctp_du.h"
/* This structure describes association of a DU to a CU */ /* This structure describes association of a DU to a CU */
......
...@@ -416,7 +416,7 @@ typedef struct f1ap_net_ip_address_s { ...@@ -416,7 +416,7 @@ typedef struct f1ap_net_ip_address_s {
typedef int (*f1ap_message_decoded_callback)( typedef int (*f1ap_message_decoded_callback)(
uint32_t assoc_id, uint32_t assoc_id,
uint32_t stream, uint32_t stream,
struct f1ap_message_s *message_p F1AP_F1AP_PDU_t *message_p
); );
/** \brief Encode a successfull outcome message /** \brief Encode a successfull outcome message
......
...@@ -134,8 +134,7 @@ static int f1ap_eNB_decode_unsuccessful_outcome(F1AP_F1AP_PDU_t *pdu) ...@@ -134,8 +134,7 @@ static int f1ap_eNB_decode_unsuccessful_outcome(F1AP_F1AP_PDU_t *pdu)
return 0; return 0;
} }
int f1ap_decode_pdu(F1AP_F1AP_PDU_t *pdu, const uint8_t *const buffer, int f1ap_decode_pdu(F1AP_F1AP_PDU_t *pdu, const uint8_t *const buffer, uint32_t length)
const uint32_t length)
{ {
asn_dec_rval_t dec_ret; asn_dec_rval_t dec_ret;
......
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
#ifndef F1AP_ENB_ENCODER_H_ #ifndef F1AP_ENB_ENCODER_H_
#define F1AP_ENB_ENCODER_H_ #define F1AP_ENB_ENCODER_H_
int f1ap_eNB_encode_pdu(F1AP_F1AP_PDU_t *pdu, uint8_t **buffer, uint32_t *len) #include "f1ap_common.h"
int f1ap_decode_pdu(F1AP_F1AP_PDU_t *pdu, const uint8_t *const buffer, uint32_t length)
__attribute__ ((warn_unused_result)); __attribute__ ((warn_unused_result));
#endif /* F1AP_ENB_ENCODER_H_ */ #endif /* F1AP_ENB_ENCODER_H_ */
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
#ifndef F1AP_ENCODER_H_ #ifndef F1AP_ENCODER_H_
#define F1AP_ENCODER_H_ #define F1AP_ENCODER_H_
int f1ap_encode_pdu(f1ap_message *message, uint8_t **buffer, uint32_t *len) #include "f1ap_common.h"
int f1ap_encode_pdu(F1AP_F1AP_PDU_t *message, uint8_t **buffer, uint32_t *len)
__attribute__ ((warn_unused_result)); __attribute__ ((warn_unused_result));
#endif /* F1AP_ENCODER_H_ */ #endif /* F1AP_ENCODER_H_ */
...@@ -89,9 +89,10 @@ void *recv_func(void *cfd) { ...@@ -89,9 +89,10 @@ void *recv_func(void *cfd) {
} }
printf("ret = %d\n", ret); printf("ret = %d\n", ret);
close( *(int*)cfd ); close( *(int*)cfd );
return NULL;
} }
int sctp_cu_init() { int sctp_cu_init(void) {
pthread_t threads; pthread_t threads;
printf("S - Waiting for socket_accept\n"); printf("S - Waiting for socket_accept\n");
......
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (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.openairinterface.org/?page_id=698
*
* 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.
*-------------------------------------------------------------------------------
* For more information about the OpenAirInterface (OAI) Software Alliance:
* contact@openairinterface.org
*/
/*! \file sctp_cu.h
* \brief sctp server procedures for F1AP
* \author Robert Schmidt
* \date 2018
* \version 0.1
* \company Eurecom
* \email: robert.schmidt@eurecom.fr
* \note
* \warning
*/
#ifndef SCTP_CU_H_
#define SCTP_CU_H_
//void send_func(int cfd);
//void *recv_func(void *cfd);
int sctp_cu_init(void);
#endif /* SCTP_CU_H_ */
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (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.openairinterface.org/?page_id=698
*
* 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.
*-------------------------------------------------------------------------------
* For more information about the OpenAirInterface (OAI) Software Alliance:
* contact@openairinterface.org
*/
/*! \file sctp_du.h
* \brief sctp server procedures for F1AP
* \author Robert Schmidt
* \date 2018
* \version 0.1
* \company Eurecom
* \email: robert.schmidt@eurecom.fr
* \note
* \warning
*/
#ifndef SCTP_DU_H_
#define SCTP_DU_H_
//void f1ap_du_send_message(uint8_t *buffer_send, uint32_t length);
//void *send_func(void *argument);
//void *recv_func(void *argument);
int sctp_du_init(void);
#endif /* SCTP_DU_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment