Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
f93345d8
Commit
f93345d8
authored
Aug 16, 2022
by
wu.jing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update oai-nrue on arm
parent
6421754b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
19 deletions
+20
-19
src/NAS/NR_UE/nr_nas_msg_sim.c
src/NAS/NR_UE/nr_nas_msg_sim.c
+2
-2
src/NAS/UE/ESM/esm_ebr_context.c
src/NAS/UE/ESM/esm_ebr_context.c
+9
-9
src/PHY/SIMULATION/ETH_TRANSPORT/netlink_init.c
src/PHY/SIMULATION/ETH_TRANSPORT/netlink_init.c
+3
-3
src/RRC/NAS/nas_config.c
src/RRC/NAS/nas_config.c
+5
-5
src/cmake_targets/CMakeLists.txt
src/cmake_targets/CMakeLists.txt
+1
-0
No files found.
src/NAS/NR_UE/nr_nas_msg_sim.c
View file @
f93345d8
...
...
@@ -936,7 +936,7 @@ void *nas_nrue_task(void *args_p)
LOG_I
(
NAS
,
"Received PDU Session Establishment Accept, UE IP: %d.%d.%d.%d
\n
"
,
*
(
payload_container
+
offset
+
3
),
*
(
payload_container
+
offset
+
4
),
*
(
payload_container
+
offset
+
5
),
*
(
payload_container
+
offset
+
6
));
nas_config
(
1
,
third_octet
,
fourth_octet
,
"o
ai
tun_ue"
);
nas_config
(
1
,
third_octet
,
fourth_octet
,
"o
penxg
tun_ue"
);
break
;
}
}
...
...
@@ -1008,7 +1008,7 @@ void *nas_nrue_task(void *args_p)
LOG_I
(
NAS
,
"Received PDU Session Establishment Accept, UE IP: %d.%d.%d.%d
\n
"
,
*
(
payload_container
+
offset
+
3
),
*
(
payload_container
+
offset
+
4
),
*
(
payload_container
+
offset
+
5
),
*
(
payload_container
+
offset
+
6
));
nas_config
(
1
,
third_octet
,
fourth_octet
,
"o
ai
tun_ue"
);
nas_config
(
1
,
third_octet
,
fourth_octet
,
"o
penxg
tun_ue"
);
break
;
}
}
...
...
src/NAS/UE/ESM/esm_ebr_context.c
View file @
f93345d8
...
...
@@ -262,11 +262,11 @@ int esm_ebr_context_create(
"ip rule add to %s/32 table %d && "
"ip route add default dev %s%d table %d"
,
ipv4_addr
,
netmask
,
broadcast
,
UE_NAS_USE_TUN
?
"o
ai
tun_ue"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
ai
tun_ue"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
penxg
tun_ue"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
penxg
tun_ue"
:
"oip"
,
ueid
+
1
,
ipv4_addr
,
ueid
+
10000
,
ipv4_addr
,
ueid
+
10000
,
UE_NAS_USE_TUN
?
"o
ai
tun_ue"
:
"oip"
,
UE_NAS_USE_TUN
?
"o
penxg
tun_ue"
:
"oip"
,
ueid
+
1
,
ueid
+
10000
);
if
(
!
get_softmodem_params
()
->
nsa
)
{
...
...
@@ -277,11 +277,11 @@ int esm_ebr_context_create(
"ip rule add to %s/32 table %d && "
"ip route add default dev %s%d table %d"
,
ipv4_addr
,
netmask
,
broadcast
,
UE_NAS_USE_TUN
?
"o
ai
tun_ue"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
ai
tun_ue"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
penxg
tun_ue"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
penxg
tun_ue"
:
"oip"
,
ueid
+
1
,
ipv4_addr
,
ueid
+
10000
,
ipv4_addr
,
ueid
+
10000
,
UE_NAS_USE_TUN
?
"o
ai
tun_ue"
:
"oip"
,
UE_NAS_USE_TUN
?
"o
penxg
tun_ue"
:
"oip"
,
ueid
+
1
,
ueid
+
10000
);
if
(
res
<
0
)
{
...
...
@@ -314,11 +314,11 @@ int esm_ebr_context_create(
"ip rule add to %s/32 table %d && "
"ip route add default dev %s%d table %d"
,
ipv4_addr
,
netmask
,
broadcast
,
UE_NAS_USE_TUN
?
"o
ai
tun_nru"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
ai
tun_nru"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
penxg
tun_nru"
:
"oip"
,
ueid
+
1
,
UE_NAS_USE_TUN
?
"o
penxg
tun_nru"
:
"oip"
,
ueid
+
1
,
ipv4_addr
,
ueid
+
10000
,
ipv4_addr
,
ueid
+
10000
,
UE_NAS_USE_TUN
?
"o
ai
tun_nru"
:
"oip"
,
UE_NAS_USE_TUN
?
"o
penxg
tun_nru"
:
"oip"
,
ueid
+
1
,
ueid
+
10000
);
if
(
res
<
0
)
{
...
...
src/PHY/SIMULATION/ETH_TRANSPORT/netlink_init.c
View file @
f93345d8
...
...
@@ -92,10 +92,10 @@ int netlink_init_mbms_tun(char *ifprefix, int id) {//for UE, id = 1, 2, ...,
char
ifname
[
64
];
if
(
id
>
0
)
{
sprintf
(
ifname
,
"o
ai
tun_%.3s%d"
,
ifprefix
,
id
-
1
);
sprintf
(
ifname
,
"o
penxg
tun_%.3s%d"
,
ifprefix
,
id
-
1
);
}
else
{
sprintf
(
ifname
,
"o
ai
tun_%.3s1"
,
ifprefix
);
// added "1": for historical reasons
sprintf
(
ifname
,
"o
penxg
tun_%.3s1"
,
ifprefix
);
// added "1": for historical reasons
}
nas_sock_mbms_fd
=
tun_alloc
(
ifname
);
...
...
@@ -131,7 +131,7 @@ int netlink_init_tun(char *ifprefix, int num_if, int id) {//for UE, id = 1, 2, .
int
begx
=
(
id
==
0
)
?
0
:
id
-
1
;
int
endx
=
(
id
==
0
)
?
num_if
:
id
;
for
(
int
i
=
begx
;
i
<
endx
;
i
++
)
{
sprintf
(
ifname
,
"o
ai
tun_%.3s%d"
,
ifprefix
,
i
+
1
);
sprintf
(
ifname
,
"o
penxg
tun_%.3s%d"
,
ifprefix
,
i
+
1
);
nas_sock_fd
[
i
]
=
tun_alloc
(
ifname
);
if
(
nas_sock_fd
[
i
]
==
-
1
)
{
...
...
src/RRC/NAS/nas_config.c
View file @
f93345d8
...
...
@@ -234,7 +234,7 @@ int nas_config_mbms(int interface_id, int thirdOctet, int fourthOctet, char *ifn
sprintf
(
ipAddress
,
"%s.%d.%d"
,
baseNetAddress
,
thirdOctet
,
fourthOctet
);
sprintf
(
broadcastAddress
,
"%s.%d.255"
,
baseNetAddress
,
thirdOctet
);
sprintf
(
interfaceName
,
"%s%s%d"
,
(
UE_NAS_USE_TUN
||
ENB_NAS_USE_TUN
)
?
"o
ai
tun_"
:
ifname
,
sprintf
(
interfaceName
,
"%s%s%d"
,
(
UE_NAS_USE_TUN
||
ENB_NAS_USE_TUN
)
?
"o
penxg
tun_"
:
ifname
,
UE_NAS_USE_TUN
?
ifname
/*"ue"*/
:
(
ENB_NAS_USE_TUN
?
ifname
/*"enb"*/
:
""
),
interface_id
);
bringInterfaceUp
(
interfaceName
,
0
);
// sets the machine address
...
...
@@ -273,7 +273,7 @@ int nas_config_mbms_s1(int interface_id, int thirdOctet, int fourthOctet, char *
sprintf
(
ipAddress
,
"%s.%d.%d"
,
"10.0"
,
thirdOctet
,
fourthOctet
);
sprintf
(
broadcastAddress
,
"%s.%d.255"
,
"10.0"
,
thirdOctet
);
sprintf
(
interfaceName
,
"%s%s%d"
,
"o
ai
tun_"
,
ifname
,
interface_id
);
sprintf
(
interfaceName
,
"%s%s%d"
,
"o
penxg
tun_"
,
ifname
,
interface_id
);
bringInterfaceUp
(
interfaceName
,
0
);
// sets the machine address
returnValue
=
setInterfaceParameter
(
interfaceName
,
ipAddress
,
SIOCSIFADDR
);
...
...
@@ -312,7 +312,7 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname)
int
returnValue
;
sprintf
(
ipAddress
,
"%s.%d.%d"
,
baseNetAddress
,
thirdOctet
,
fourthOctet
);
sprintf
(
broadcastAddress
,
"%s.%d.255"
,
baseNetAddress
,
thirdOctet
);
sprintf
(
interfaceName
,
"%s%s%d"
,
(
UE_NAS_USE_TUN
||
ENB_NAS_USE_TUN
)
?
"o
ai
tun_"
:
ifname
,
sprintf
(
interfaceName
,
"%s%s%d"
,
(
UE_NAS_USE_TUN
||
ENB_NAS_USE_TUN
)
?
"o
penxg
tun_"
:
ifname
,
UE_NAS_USE_TUN
?
"ue"
:
(
ENB_NAS_USE_TUN
?
"enb"
:
""
),
interface_id
);
bringInterfaceUp
(
interfaceName
,
0
);
// sets the machine address
...
...
@@ -344,7 +344,7 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname)
"ip route add default dev %s%d table %d"
,
ipAddress
,
interface_id
-
1
+
10000
,
ipAddress
,
interface_id
-
1
+
10000
,
UE_NAS_USE_TUN
?
"o
ai
tun_ue"
:
"oip"
,
UE_NAS_USE_TUN
?
"o
penxg
tun_ue"
:
"oip"
,
interface_id
,
interface_id
-
1
+
10000
);
if
(
res
<
0
)
{
...
...
@@ -413,7 +413,7 @@ int main(int argc,char **argv)
char
ipAddress
[
100
];
char
networkMask
[
100
];
char
broadcastAddress
[
100
];
strcpy
(
interfaceName
,
"o
ai
0"
);
strcpy
(
interfaceName
,
"o
penxg
0"
);
strcpy
(
ipAddress
,
"10.0.1.1"
);
strcpy
(
networkMask
,
"255.255.255.0"
);
broadcastAddress
[
0
]
=
'\0'
;
...
...
src/cmake_targets/CMakeLists.txt
View file @
f93345d8
...
...
@@ -103,6 +103,7 @@ endif()
# So, here are some hacks here. Hope this gets fixed in future!
if
(
EXISTS
"/usr/include/atlas/cblas.h"
OR EXISTS
"/usr/include/cblas.h"
)
include_directories
(
"/usr/include/atlas"
)
include_directories
(
"/usr/include/lapacke"
)
LINK_DIRECTORIES
(
"/usr/lib/lapack"
)
LINK_DIRECTORIES
(
"/usr/lib64"
)
LINK_DIRECTORIES
(
"/usr/lib64/atlas"
)
#Added because atlas libraries in CentOS 7 are here!
...
...
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