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
spbro
OpenXG-RAN
Commits
e1e5b56a
Commit
e1e5b56a
authored
Sep 01, 2021
by
matzakos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IP address parsing for CU/DU tunnel information info
parent
01504dca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+5
-4
openair3/UTILS/conversions.h
openair3/UTILS/conversions.h
+1
-1
No files found.
openair2/RRC/NR/rrc_gNB.c
View file @
e1e5b56a
...
...
@@ -94,6 +94,7 @@
#include "executables/softmodem-common.h"
#include <openair2/RRC/NR/rrc_gNB_UE_context.h>
#include <openair2/X2AP/x2ap_eNB.h>
#include <openair3/ocp-gtpu/gtp_itf.h>
#include "BIT_STRING.h"
#include "assertions.h"
...
...
@@ -1356,10 +1357,10 @@ rrc_gNB_process_RRCReconfigurationComplete(
//create_tunnel_req.outgoing_teid[i] = 0xFFFF;
create_tunnel_req
.
outgoing_teid
[
i
]
=
0xFFFF
;
create_tunnel_req
.
rnti
=
ue_context_pP
->
ue_context
.
rnti
;
LOG_I
(
NR_RRC
,
"The DU remote IP address is: %s
\n
"
,
rrc
->
eth_params_s
.
remote_addr
);
create_tunnel_req
.
dst_addr
[
i
].
buffer
[
0
]
=
inet_addr
(
rrc
->
eth_params_s
.
remote_addr
);
//create_tunnel_req.dst_addr[i].length = 32
;
create_tunnel_req
.
dst_addr
[
i
].
length
=
32
;
in_addr_t
tmp_addr
=
inet_addr
(
rrc
->
eth_params_s
.
remote_addr
);
memcpy
(
create_tunnel_req
.
dst_addr
[
i
].
buffer
,
&
tmp_addr
,
sizeof
(
tmp_addr
)
);
LOG_D
(
NR_RRC
,
"The remote tunnel IP address of the DU is: %u.%u.%u.%u
\n
"
,
create_tunnel_req
.
dst_addr
[
i
].
buffer
[
0
],
create_tunnel_req
.
dst_addr
[
i
].
buffer
[
1
],
create_tunnel_req
.
dst_addr
[
i
].
buffer
[
2
],
create_tunnel_req
.
dst_addr
[
i
].
buffer
[
3
])
;
create_tunnel_req
.
dst_addr
[
i
].
length
=
sizeof
(
tmp_addr
)
*
8
;
create_tunnel_req
.
incoming_rb_id
[
i
]
=
DRB_configList
->
list
.
array
[
i
]
->
drb_Identity
;
/* Here the callback function used as input is not the right one. Need to create a new one probably for F1-U, not sure
...
...
openair3/UTILS/conversions.h
View file @
e1e5b56a
...
...
@@ -403,7 +403,7 @@ do { \
(bITsTRING)->buf[0] = (mACRO) >> 24 & 0xFF; \
(bITsTRING)->buf[1] = (mACRO) >> 16 & 0xFF; \
(bITsTRING)->buf[2] = (mACRO) >> 8 & 0xFF; \
(bITsTRING)->buf[3] = (mACRO)
>> 4 & 0xFF;
\
(bITsTRING)->buf[3] = (mACRO)
& 0xFF;
\
(bITsTRING)->size = 4; \
(bITsTRING)->bits_unused = 0; \
} while(0)
...
...
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