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
e37f67cc
Commit
e37f67cc
authored
Sep 26, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make E1AP function check_transac_id() static
parent
6eba6678
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
openair2/E1AP/e1ap_common.c
openair2/E1AP/e1ap_common.c
+3
-3
openair2/E1AP/e1ap_common.h
openair2/E1AP/e1ap_common.h
+0
-2
No files found.
openair2/E1AP/e1ap_common.c
View file @
e37f67cc
...
...
@@ -59,8 +59,8 @@ void e1ap_common_init() {
srand
(
time
(
NULL
));
}
bool
check_transac_id
(
E1AP_TransactionID_t
id
,
int
*
freeIdx
)
{
static
bool
check_transac_id
(
E1AP_TransactionID_t
id
,
int
*
freeIdx
)
{
bool
isFreeIdxSet
=
false
;
for
(
int
i
=
0
;
i
<
E1AP_MAX_NUM_TRANSAC_IDS
;
i
++
)
{
if
(
id
==
transacID
[
i
])
...
...
@@ -77,7 +77,7 @@ bool check_transac_id(E1AP_TransactionID_t id, int *freeIdx) {
E1AP_TransactionID_t
E1AP_get_next_transaction_identifier
()
{
E1AP_TransactionID_t
genTransacId
;
bool
isTransacIdValid
=
false
;
int
freeIdx
;
int
freeIdx
=
0
;
while
(
!
isTransacIdValid
)
{
genTransacId
=
rand
()
&
255
;
...
...
openair2/E1AP/e1ap_common.h
View file @
e37f67cc
...
...
@@ -47,8 +47,6 @@ E1AP_TransactionID_t E1AP_get_next_transaction_identifier();
void
createE1inst
(
E1_t
type
,
instance_t
instance
,
e1ap_setup_req_t
*
req
);
bool
check_transac_id
(
E1AP_TransactionID_t
id
,
int
*
freeIdx
);
int
e1ap_assoc_id
(
E1_t
type
,
instance_t
instance
);
int
e1ap_encode_send
(
E1_t
type
,
e1ap_setup_req_t
*
setupReq
,
E1AP_E1AP_PDU_t
*
pdu
,
uint16_t
stream
,
const
char
*
func
);
...
...
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