matzakos
40263348f9
Merge with NR_F1C_F1U_extensions and resolve conflicts
2021-11-12 17:01:27 +01:00
Raphael Defosseux
1ec50d4d2c
fix(oai-lte-ue): unrestrict socket in nas init. Fix running with a docker Ubuntu container
...
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr >
2021-07-19 12:19:27 +02:00
Laurent OpenCells
c0ef3e6f88
fix gcc reported issues
2021-04-03 23:37:58 +02:00
masayuki.harada
ff994453a4
Merge remote-tracking branch 'remotes/oai/develop' into HEAD
...
# Conflicts:
# openair3/S1AP/s1ap_eNB.c
# openair3/S1AP/s1ap_eNB_handlers.c
2021-03-08 14:51:11 +09:00
Wu Jing
cead17f2d8
Fix openair3/NAS/UE cppcheck error
2021-01-06 19:33:04 +09:00
Laurent
42a110338c
itti dynamic queue creation, and 64 bits instance id
2020-12-23 13:56:01 +01:00
Robert Schmidt
a6126a39a5
Remove MAX_NUMBER_NETIF and use num UE
2020-10-13 09:07:46 +02:00
Robert Schmidt
8c5976e279
Use "ip add" to add IP addresses
...
This then only uses the "modern" ip tool instead of ifconfig, and the
command is more "homogeneous".
2020-10-13 09:07:46 +02:00
Robert Schmidt
298956509f
Delete double UE IP config setup
2020-10-13 09:07:46 +02:00
Robert Schmidt
4c7035e6e3
Remove UESIM_EXPANSION
...
This completely removes the UESIM_EXPANSION define: it does not compile
at the moment. Its function was to multiplex multiple UEs on the same
TUN interface. However, this functionality is not needed since it is
possible to allocate many TUN devices (i.e., >= 32).
2020-10-13 09:07:46 +02:00
Robert Schmidt
a51dc94e8b
Set correct UE ID in Kenb Refresh Req
...
NAS triggered the Kenb Refresh Req always for (hardcoded) UE 0. This
fixes this by setting the correct UE ID.
An effect of this was that the Kenb would always be set for UE 0,
regardless for which UE it was actually intended. This led for integrity
check failures for every UE with ID > 0.
2020-03-04 13:38:04 +01:00
frtabu
6014ca42ac
ENABLE_ITTI macro removal, modified telnet server to support all executables, modified record player to finalize switch to run-time option and allow usage with any device
2020-02-12 19:05:44 +01:00
Raphael Defosseux
c409da3bb8
Patch provided by Gabriel Arrobo.
...
Mainly comestics and integer type management
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr >
2020-01-09 14:10:04 +01:00
yilmazt
2b321fd1c7
Merging latest develop commits
2019-07-16 11:20:24 +02:00
Dong Anyuan
4c60ee7775
Remove Coverity Scan CID 60471 (Function memory_read does not terminate string *user->nas_user_nvdata.)
2019-06-21 18:34:14 +09:00
Dong Anyuan
0e2406f0fe
Remove Coverity Scan CID 60241 (Passing &eplmn to function emm_proc_attach_accept which uses it as an array. This might corrupt or misinterpret adjacent memory locations.)
2019-06-21 18:31:58 +09:00
Dong Anyuan
3b96a7ac3f
Fix Coverity Scan CID 60241 (Passing &eplmn to function emm_proc_attach_accept which uses it as an array. This might corrupt or misinterpret adjacent memory locations.)
2019-06-20 12:39:06 +09:00
Dong Anyuan
7cf75c6d50
Fix Coverity Scan CID 60277 (Calling strncpy with a maximum size argument of 4096 bytes on destination array user_api_id->recv_buffer of size 4096 bytes might leave the destination string unterminated.)
2019-06-20 12:38:33 +09:00
Dong Anyuan
42f481b51e
Fix Coverity Scan CID 60369 (Variable plain_msg going out of scope leaks the storage it points to.)
2019-06-20 12:36:02 +09:00
Dong Anyuan
db137bf1d5
Fix Coverity Scan CID 60393 (Using uninitialized value pid when calling esm_ebr_context_release.)
2019-06-20 12:33:52 +09:00
Dong Anyuan
5275b4c7c6
Fix Coverity Scan CID 60435 (Using uninitialized value bid when calling esm_ebr_context_release.)
2019-06-20 12:31:35 +09:00
Dong Anyuan
c4d56a9331
Fix Coverity Scan CID 60471 (Function memory_read does not terminate string *user->nas_user_nvdata.)
2019-06-20 12:02:32 +09:00
Dong Anyuan
ac6f5dceb0
Fix Coverity Scan CID 261499 (Overrunning array sqn_ms of 6 bytes at byte offset 6 using index 6 - i (which evaluates to 6).)
2019-06-20 11:28:22 +09:00
Dong Anyuan
dbcfda529d
Fix Coverity Scan CID 261543 (Overrunning array usim_data->usim_sqn_data.sqn_ms of 6 bytes at byte offset 6 using index 6 - i (which evaluates to 6).)
2019-06-20 11:17:33 +09:00
yilmazt
ccd60195e0
Merging test-x310, ci-dev-nr-add-gnb-nr-ur-uspr-testing and nr-mimo-mode-clean branches
2019-05-20 21:32:34 +02:00
Laurent
4d787625ab
still to compile
2019-04-30 14:25:42 +02:00
laurent
8a92138086
rework threads in 5G
2019-04-30 10:17:08 +02:00
frtabu
30b7c973e0
merge nfapi_cleanup
2019-04-05 18:43:40 +02:00
frtabu
fb46545526
Fix corrupted LOGs in L1L2simulator, introducing two new components NFAPI_VNF and NFAPI_pnf. Integrate Fujitsu fix for up to 50 UEs. Apply astyle to all modified files in the branch
2019-02-25 16:50:03 +01:00
frtabu
eb26975451
attempt to fix l2 simulator issue
2019-02-19 19:50:44 +01:00
frtabu
3f61d5f720
fix compilation warning
2019-02-17 23:46:45 +01:00
frtabu
38d772d8a2
nos1 et s1 execs identical, nos1 enforced based on exec name or --noS1 option
2019-02-17 23:46:45 +01:00
frtabu
875bdaf282
cppcheck fixes (2)
2019-02-12 09:46:02 +01:00
Raphael Defosseux
64144a8442
Merge remote-tracking branch 'origin/issue391-removeunusedcode_L2L1task' into develop_integration_2019_w04
...
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr >
2019-01-24 15:33:19 +01:00
Raphael Defosseux
8260607ed6
CI: fix in L2-simulator VM build start script
...
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr >
2019-01-22 21:37:40 +01:00
frtabu
9d0c70c9fe
remove L1L2 task, also remove some call to send messages to UNKNOWN_TASK, removed in new itti. Align LOG in rlc sources with new LOG code (remove DEBUG_RLC...)
2019-01-21 19:43:19 +01:00
Raphael Defosseux
d73685933c
Merge remote-tracking branch 'origin/develop' into issue_345_l2_fapi_simulator_new
...
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr >
2019-01-16 11:21:27 +01:00
yoshio.inoue
11df1684b7
cleanup warnings
2018-11-07 21:04:12 +09:00
frtabu
18ec5d8047
abort execution when an unknown option is passed via the command line: add config_check_cmdlineopt API to config module, create lte-softmodem-common.c source to remove duplicate code in lte-softmodem.c and lte-uesoftmodem.c, fix segfaults in exec_function of lte-uesoftmodem
2018-11-02 18:17:11 +01:00
yoshio.inoue
64b395c64a
Fixed overflow related to oip generation
2018-11-02 19:28:15 +09:00
yoshio.inoue
e13c962d24
Fixed bug that u-plane is not transferred with multiple UEs
2018-11-02 16:54:19 +09:00
Y_Tomita
f39f321d3b
Compiling error fix.
2018-10-23 18:50:46 +09:00
Y_Tomita
35e81d8a66
Add virtual NIC setting for L2 FAPI simulator.
2018-10-23 15:28:04 +09:00
Y_Tomita
0e0a04fbc1
Fix for 256UEs.
2018-10-22 15:35:34 +09:00
frtabu
24f8fcf346
Use common log mechanism in layer 3, mapping specific macros to common ones and extending common log utilities to support specific layer3 requirements
2018-08-24 17:43:14 +02:00
frtabu
30509955c2
remove compilation warnings, especially when disabling T_TRACER. enhance LOG_M macro implementation, introduce LOG_DEBUG_XXX macro to replace #ifdef DEBUG_XXX
2018-07-30 20:07:22 +02:00
frtabu
b85cbddeec
log.c simplification, fix usefull functionality which never worked, move all log code from openair2 to common
2018-07-30 20:07:22 +02:00
Cedric Roux
1b1f941e3c
upgrade license to version 1.1
2017-10-23 12:22:13 +02:00
Cedric Roux
5e323eefa2
improve logging in oaisim
...
- print current working directory
- print git version (if available)
- print security keys
this last one is a security breach, but as of today
it's not a problem
2017-05-18 10:39:25 +02:00
Cedric Roux
cff9149920
fix issue 227 - UE IP settings disrupts realtime
...
see https://gitlab.eurecom.fr/oai/openairinterface5g/issues/227
When the UE connects to the eNodeB and receives its IP address from the
network, it calls system() to set it in the linux kernel world. This call
is not done in a realtime thread, but in the NAS, which uses its own thread,
independent of the realtime processing.
In some situations this totally disrupts realtime processing.
It is difficult to know precisely why that happens, but it seems that calling
fork(), as system() does, in a multi-threaded program is not a good idea. (So
say several people on the internet.) It is not clear why the softmodem is
impacted, but it seems that fork() is really what triggers the disruption.
Several tests lead to that conclusion.
To fix the problem, we create a child background process very early in main()
(before anything else basically). Then instead of calling system(), the main
process sends the string to the background process. The background process
gets the string, passes it to system() and reports the success/failure back
to the main process.
This solution involves a lot of system calls, but calling system() in the
first place is not cheap either. As long as no realtime thread uses this
mechanism, things should be fine. Time will tell.
2017-03-23 12:34:24 +01:00