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
lizhongxiao
OpenXG-RAN
Commits
bcae6bc6
Commit
bcae6bc6
authored
Jul 10, 2019
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update relay_UE_routing script
parent
08a77aab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+1
-1
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
+2
-2
relay_UE_routing.sh
relay_UE_routing.sh
+12
-0
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
bcae6bc6
...
...
@@ -841,7 +841,7 @@ pdcp_data_ind(
}
/* Print octets of incoming data in hexadecimal form */
LOG_
I
(
PDCP
,
"Following content has been received from RLC (%d,%d)(PDCP header has already been removed):
\n
"
,
LOG_
D
(
PDCP
,
"Following content has been received from RLC (%d,%d)(PDCP header has already been removed):
\n
"
,
sdu_buffer_sizeP
-
payload_offset
+
(
int
)
sizeof
(
pdcp_data_ind_header_t
),
sdu_buffer_sizeP
-
payload_offset
);
//util_print_hex_octets(PDCP, &new_sdu_p->data[sizeof (pdcp_data_ind_header_t)], sdu_buffer_sizeP - payload_offset);
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
View file @
bcae6bc6
...
...
@@ -216,7 +216,7 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t* const ctxt_pP)
#endif
/* defined(ENABLE_USE_MME) */
#ifdef PDCP_DEBUG
LOG_
I
(
PDCP
,
"PDCP->IP TTI %d INST %d: Preparing %d Bytes of data from rab %d to Nas_mesh
\n
"
,
LOG_
D
(
PDCP
,
"PDCP->IP TTI %d INST %d: Preparing %d Bytes of data from rab %d to Nas_mesh
\n
"
,
ctxt_pP
->
frame
,
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
inst
,
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
data_size
,
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
rb_id
);
#endif //PDCP_DEBUG
...
...
@@ -1086,7 +1086,7 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
nas_nlh_rx
->
nlmsg_len
-
sizeof
(
struct
nlmsghdr
),
pdcp_read_header_g
.
rb_id
);
LOG_
I
(
PDCP
,
"[FRAME %5u][UE][IP][INSTANCE %u][RB %u][--- PDCP_DATA_REQ / %d Bytes --->][PDCP][MOD %u][UE %u][RB %u]
\n
"
,
LOG_
D
(
PDCP
,
"[FRAME %5u][UE][IP][INSTANCE %u][RB %u][--- PDCP_DATA_REQ / %d Bytes --->][PDCP][MOD %u][UE %u][RB %u]
\n
"
,
ctxt
.
frame
,
pdcp_read_header_g
.
inst
,
pdcp_read_header_g
.
rb_id
,
...
...
relay_UE_routing.sh
View file @
bcae6bc6
#!/bin/bash
sudo
iptables
-t
mangle
-F
sudo
iptables
-t
nat
-F
# Load ue_ip module
sudo
rmmod ue_ip
source
oaienv
cd
cmake_targets/tools
source
init_nas_s1 UE
# Sidelink interface configuration
sudo
ifconfig oip0 10.0.0.1
...
...
@@ -10,9 +18,13 @@ sudo ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up
# Routing and SLRB configuration for specific sidelink (10.0.0.2) and external(e.g., 8.8.8.8) destination addresses.
sudo
ip neigh add 10.0.0.2 lladdr 00:00:00:00:00:02 dev oip0 nud permanent
sudo
ip neigh change 10.0.0.2 lladdr 00:00:00:00:00:02 dev oip0 nud permanent
sudo
iptables
-A
POSTROUTING
-t
mangle
-o
oip0
-d
10.0.0.2
-j
MARK
--set-mark
4
# Mark outgoing MULTICAST traffic to group 224.0.0.3 with the SLRB ID
sudo
iptables
-A
POSTROUTING
-t
mangle
-o
oip0
-d
224.0.0.3
-j
MARK
--set-mark
5
sudo
ip route add 8.8.8.8 dev oip1
# Applying NAT so that the Remote UE originating/destined traffic does not get blocked at the PGW.
...
...
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