Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
63a2fb06
Commit
63a2fb06
authored
Sep 06, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle warnings regarding undeclared functions for dec, enc, sctp
parent
14298413
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
97 additions
and
9 deletions
+97
-9
openair2/F1AP/CU_F1AP.c
openair2/F1AP/CU_F1AP.c
+3
-0
openair2/F1AP/DU_F1AP.c
openair2/F1AP/DU_F1AP.c
+1
-2
openair2/F1AP/f1ap_common.h
openair2/F1AP/f1ap_common.h
+1
-1
openair2/F1AP/f1ap_decoder.c
openair2/F1AP/f1ap_decoder.c
+1
-2
openair2/F1AP/f1ap_decoder.h
openair2/F1AP/f1ap_decoder.h
+3
-1
openair2/F1AP/f1ap_encoder.h
openair2/F1AP/f1ap_encoder.h
+3
-1
openair2/F1AP/sctp_cu.c
openair2/F1AP/sctp_cu.c
+3
-2
openair2/F1AP/sctp_cu.h
openair2/F1AP/sctp_cu.h
+40
-0
openair2/F1AP/sctp_du.h
openair2/F1AP/sctp_du.h
+42
-0
No files found.
openair2/F1AP/CU_F1AP.c
View file @
63a2fb06
...
...
@@ -33,6 +33,9 @@
#include "conversions.h"
#include "f1ap_common.h"
#include "f1ap_messages_types.h"
#include "f1ap_encoder.h"
#include "f1ap_decoder.h"
#include "sctp_cu.h"
#include "platform_types.h"
#include "log.h"
...
...
openair2/F1AP/DU_F1AP.c
View file @
63a2fb06
...
...
@@ -35,8 +35,7 @@
#include "f1ap_messages_types.h"
#include "platform_types.h"
#include "common/utils/LOG/log.h"
#include "sctp_du.h"
/* This structure describes association of a DU to a CU */
...
...
openair2/F1AP/f1ap_common.h
View file @
63a2fb06
...
...
@@ -416,7 +416,7 @@ typedef struct f1ap_net_ip_address_s {
typedef
int
(
*
f1ap_message_decoded_callback
)(
uint32_t
assoc_id
,
uint32_t
stream
,
struct
f1ap_message_s
*
message_p
F1AP_F1AP_PDU_t
*
message_p
);
/** \brief Encode a successfull outcome message
...
...
openair2/F1AP/f1ap_decoder.c
View file @
63a2fb06
...
...
@@ -134,8 +134,7 @@ static int f1ap_eNB_decode_unsuccessful_outcome(F1AP_F1AP_PDU_t *pdu)
return
0
;
}
int
f1ap_decode_pdu
(
F1AP_F1AP_PDU_t
*
pdu
,
const
uint8_t
*
const
buffer
,
const
uint32_t
length
)
int
f1ap_decode_pdu
(
F1AP_F1AP_PDU_t
*
pdu
,
const
uint8_t
*
const
buffer
,
uint32_t
length
)
{
asn_dec_rval_t
dec_ret
;
...
...
openair2/F1AP/f1ap_decoder.h
View file @
63a2fb06
...
...
@@ -33,7 +33,9 @@
#ifndef 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
));
#endif
/* F1AP_ENB_ENCODER_H_ */
openair2/F1AP/f1ap_encoder.h
View file @
63a2fb06
...
...
@@ -33,7 +33,9 @@
#ifndef 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
));
#endif
/* F1AP_ENCODER_H_ */
openair2/F1AP/sctp_cu.c
View file @
63a2fb06
...
...
@@ -89,9 +89,10 @@ void *recv_func(void *cfd) {
}
printf
(
"ret = %d
\n
"
,
ret
);
close
(
*
(
int
*
)
cfd
);
return
NULL
;
}
int
sctp_cu_init
()
{
int
sctp_cu_init
(
void
)
{
pthread_t
threads
;
printf
(
"S - Waiting for socket_accept
\n
"
);
...
...
openair2/F1AP/sctp_cu.h
0 → 100644
View file @
63a2fb06
/*
* 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_ */
openair2/F1AP/sctp_du.h
0 → 100644
View file @
63a2fb06
/*
* 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_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment