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
56d3ae4d
Commit
56d3ae4d
authored
Feb 22, 2024
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop netlink from function name
parent
5af9e41c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c
openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c
+2
-1
openair1/SIMULATION/ETH_TRANSPORT/proto.h
openair1/SIMULATION/ETH_TRANSPORT/proto.h
+1
-1
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+2
-2
No files found.
openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c
View file @
56d3ae4d
...
...
@@ -152,7 +152,8 @@ int init_single_tun(char *ifname)
return
sock
;
}
int
netlink_init_tun
(
char
*
ifprefix
,
int
num_if
,
int
id
)
{
//for UE, id = 1, 2, ...,
int
init_tun
(
char
*
ifprefix
,
int
num_if
,
int
id
)
{
// for UE, id = 1, 2, ...,
int
ret
;
char
ifname
[
64
];
...
...
openair1/SIMULATION/ETH_TRANSPORT/proto.h
View file @
56d3ae4d
...
...
@@ -62,7 +62,7 @@ int multicast_link_read_data_from_sock(uint8_t eNB_flag);
void
clear_eNB_transport_info
(
uint8_t
);
void
clear_UE_transport_info
(
uint8_t
);
int
netlink_init
(
void
);
int
netlink_
init_tun
(
char
*
ifsuffix
,
int
num_if
,
int
id
);
int
init_tun
(
char
*
ifsuffix
,
int
num_if
,
int
id
);
int
netlink_init_mbms_tun
(
char
*
ifsuffix
,
int
id
);
int
init_single_tun
(
const
char
*
ifname
);
void
netlink_cleanup
(
void
);
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
56d3ae4d
...
...
@@ -2304,14 +2304,14 @@ uint64_t pdcp_module_init( uint64_t pdcp_optmask, int id) {
if
(
UE_NAS_USE_TUN
)
{
int
num_if
=
(
NFAPI_MODE
==
NFAPI_UE_STUB_PNF
||
IS_SOFTMODEM_SIML1
||
NFAPI_MODE
==
NFAPI_MODE_STANDALONE_PNF
)
?
MAX_MOBILES_PER_ENB
:
1
;
netlink_init_tun
(
"ue"
,
num_if
,
id
);
init_tun
(
"ue"
,
num_if
,
id
);
if
(
IS_SOFTMODEM_NOS1
)
nas_config
(
1
,
1
,
2
,
"ue"
,
10
);
netlink_init_mbms_tun
(
"uem"
,
id
);
nas_config_mbms
(
1
,
2
,
2
,
"uem"
);
LOG_I
(
PDCP
,
"UE pdcp will use tun interface
\n
"
);
}
else
if
(
ENB_NAS_USE_TUN
)
{
netlink_
init_tun
(
"enb"
,
1
,
0
);
init_tun
(
"enb"
,
1
,
0
);
nas_config
(
1
,
1
,
1
,
"enb"
,
10
);
if
(
pdcp_optmask
&
ENB_NAS_USE_TUN_W_MBMS_BIT
){
netlink_init_mbms_tun
(
"enm"
,
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