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
5e735a44
Commit
5e735a44
authored
Jul 10, 2019
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update remote_UE_routing script
parent
08a77aab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
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
remote_UE_routing.sh
remote_UE_routing.sh
+14
-1
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
5e735a44
...
...
@@ -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 @
5e735a44
...
...
@@ -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
,
...
...
remote_UE_routing.sh
View file @
5e735a44
#!/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
#Interface configuration
sudo
ifconfig oip0 10.0.0.2
...
...
@@ -7,10 +16,14 @@ sudo ifconfig oip0 hw ether 00:00:00:00:00:02
#Routing configuration for specific sidelink destination addresses (sidelink (10.0.0.1))
sudo
ip neigh add 10.0.0.1 lladdr 00:00:00:00:00:01 dev oip0 nud permanent
sudo
ip neigh change 10.0.0.1 lladdr 00:00:00:00:00:01 dev oip0 nud permanent
#
Establishment of SLRB for sidelink communication
#
Mark outgoing UNICAST traffic to UE 10.0.0.2 with the SLRB ID
sudo
iptables
-A
POSTROUTING
-t
mangle
-o
oip0
-d
10.0.0.1
-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
# Associate destination address (e.g. 8.8.8.8) with the MAC address of the relay UE at the neighbor table
sudo
ip neigh add 8.8.8.8 lladdr 00:00:00:00:00:01 dev oip0 nud permanent
...
...
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