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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
e1461d95
Commit
e1461d95
authored
Oct 02, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/compile_fix_e2_agent' into integration_2023_w39
parents
40fbe8b0
2eaac035
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
common/utils/ds/byte_array.c
common/utils/ds/byte_array.c
+17
-0
common/utils/ds/byte_array.h
common/utils/ds/byte_array.h
+6
-2
executables/nr-softmodem.c
executables/nr-softmodem.c
+1
-1
No files found.
common/utils/ds/byte_array.c
View file @
e1461d95
...
...
@@ -22,6 +22,7 @@
#include "byte_array.h"
#include "common/utils/assertions.h"
#include <assert.h>
#include <string.h>
byte_array_t
copy_byte_array
(
byte_array_t
src
)
...
...
@@ -56,3 +57,19 @@ bool eq_byte_array(const byte_array_t* m0, const byte_array_t* m1)
return
true
;
}
byte_array_t
cp_str_to_ba
(
const
char
*
str
)
{
assert
(
str
!=
NULL
);
const
size_t
sz
=
strlen
(
str
);
byte_array_t
dst
=
{.
len
=
sz
};
dst
.
buf
=
calloc
(
sz
,
sizeof
(
uint8_t
));
assert
(
dst
.
buf
!=
NULL
&&
"Memory exhausted"
);
memcpy
(
dst
.
buf
,
str
,
sz
);
return
dst
;
}
common/utils/ds/byte_array.h
View file @
e1461d95
...
...
@@ -19,8 +19,10 @@
* contact@openairinterface.org
*/
#ifndef BYTE_ARRAY_H_OAI
#define BYTE_ARRAY_H_OAI
#ifndef BYTE_ARRAY_H
#define BYTE_ARRAY_H
/* WARNING: This file is also defined at XXXXX. Both files need to be completely equal. Same applies for *.c */
#include <stdbool.h>
#include <stdint.h>
...
...
@@ -39,4 +41,6 @@ byte_array_t copy_byte_array(byte_array_t src);
void
free_byte_array
(
byte_array_t
ba
);
bool
eq_byte_array
(
const
byte_array_t
*
m0
,
const
byte_array_t
*
m1
);
byte_array_t
cp_str_to_ba
(
const
char
*
str
);
#endif
executables/nr-softmodem.c
View file @
e1461d95
...
...
@@ -709,7 +709,7 @@ int main( int argc, char **argv ) {
const
int
mcc
=
rrc
->
configuration
.
mcc
[
0
];
const
int
mnc
=
rrc
->
configuration
.
mnc
[
0
];
const
int
mnc_digit_len
=
rrc
->
configuration
.
mnc_digit_length
[
0
];
const
ngran_node_t
node_type
=
rrc
->
node_type
;
//
const ngran_node_t node_type = rrc->node_type;
int
nb_id
=
0
;
int
cu_du_id
=
0
;
if
(
node_type
==
ngran_gNB
)
{
...
...
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