David Rupprecht
306bb6b38b
Added function for derive keys
4 years ago
Ismael Gomez
a6423442c2
Refactor NR RA files and fix header includes all over library ( #2162 )
...
* Refactor NR resource allocation classes. Use DCI instead of grant for dummy PDSCH UE/eNB test
* Minor refactors in NR workers and ue_dl
* Fix include issues
* fix compilation issues
4 years ago
Andre Puschmann
78b07daf3b
pcap: make public interfaces thread-safe and handle fopen returning nullptr
...
the previous patch only introduced a thread-safe queue between
PHY workers (writers) and PCAP writer thread (consumer).
However, it is also required to protect the ctor (and close()) to
prevent corrupted PCAP files.
The patch also correctly handles the case where the PCAP couldn't
be openend for writing and doesn't start the thread.
4 years ago
Andre Puschmann
4fa89b7039
pcap: make PCAP write thread-safe
...
* offload PCAP writing to background thread
* use blocking_queue between writer and clients to make it thread-safe
* add basic test case
this fixes point 1-3 of #2161
4 years ago
faluco
92b11c1adb
Backport misc changes from the fapi repo.
4 years ago
Ismael Gomez
0498439d41
Backport some changes from FAPI branch ( #2124 )
...
* Reorder DCI FORMAT enum
* Fix endianness issue
* Fix return codes in phy_ue_db
* Log members should be destructed after the layers.
* Add JSON metrics and Events. Add Alarm log channel. Simplify MAC metrics struct.
* Restore metrics_stdout change
4 years ago
Andre Puschmann
00a6e16c14
update license header for liblte_*.{h,cc} files
...
user license-agnostic text to refer to license file.
make sure copyrights/years are correct.
4 years ago
Andre Puschmann
b9f363db9a
ssl: rename liblte_ssl.h to ssl.h
4 years ago
Andre Puschmann
07d2bc4fe8
change license header to agnostic version with hint to root LICENSE file
4 years ago
Pedro Alvarez
d05bc064b5
Reduced SCTP connect() timeout.
...
Added configuration for RTO_MAX. Cleanup debug prints.
4 years ago
Andre Puschmann
5e7de0a95b
cmake: install individual libraries (common, phy, etc)
...
this seems to be important for package maintainers
or people who use srslte components in other projects
thar require to link against static libs
so besides installing headers, the apps and the RF lib, we also
install all individual libraries
this fixes https://github.com/srsLTE/srsLTE/issues/500#
and https://github.com/softwareradiosystems/srsLTE/issues/1754
4 years ago
faluco
693d2f10b7
- Fix hex dumps newlines.
4 years ago
faluco
079ae70e64
- Fix logs entries having two newlines instead of one. The old log formatter will delegate this to the new one.
4 years ago
faluco
51b27fc255
Import latest srslog version ( #1796 )
...
* - Import latest srslog version.
- Adjusted the nas_test to create logs correctly.
- Remove timestamp formatting now that is provided by srslog.
4 years ago
faluco
85544bb8d3
- Remove unnecessary newline character and optimize the code to use fputs instead of fprintf since no formatting is required.
4 years ago
faluco
dfeed52514
- Rename out_stream function to console.
4 years ago
faluco
62faef7c71
- Replaced all uses of the log::console method.
4 years ago
faluco
302f9793ca
- Add common utils to print to stdout and stderr as a first step to remove the log::console method.
4 years ago
faluco
f0d651ae8e
- Fixed a leak in the MME class not releasing the static byte buffer pool.
...
- Now the pool gets destroyed on program exit using a unique_ptr.
- Removed manual cleanup() calls in all the code base to free the pool instance.
4 years ago
Andre Puschmann
9dd02af15c
network_utils: lower verbosity of when socket connection fails
...
the network helper can log this event but it should be up to
the caller to decide whether this is an error or not.
4 years ago
faluco
cfd3f51931
Import of srslog into srsepc and srsenb. ( #1574 )
...
* - Import of srslog into srsepc and srsenb.
* - Removed logger_file and logger_stdout files.
4 years ago
faluco
efdff8ba4c
Import srslog into srsue ( #1556 )
...
- Import the srslog project into srslte.
- Ported srsue app to use the new logging framework.
- Implemented a wrapper that dispatches log entries to srslog.
- Renamed an existing log test to be more specific to avoid name clashes.
4 years ago
Andre Puschmann
dc67d28709
nas: do not generate NAS encryption key if also is set to NULL
...
its more a cosmetic change to clean the logs. this makes
sure that a zero key is logged when NULL encryption is selected.
4 years ago
Andre Puschmann
96726a03e0
rlc_stress_test: fix PCAP support
...
expose actual RLC configuration to PCAP object
4 years ago
Francisco Paisana
e555e50a90
fix pnf packing for MIB messages
4 years ago
Francisco Paisana
e3e9bbcd62
fix PNF PDU size cutting
4 years ago
Francisco Paisana
cc52edf820
added latest pnf/vnf api updates
4 years ago
Francisco Paisana
b05ce2fe57
added pnf_dummy test
4 years ago
David Rupprecht
61b69a0dab
security: refactor code, fix race in eia1
...
* state funktion for eia1 (mitigate race condition)
* Extra file for snow3g
* just use mbedtls aes
* ref specification
* adding const keyword to security functions
5 years ago
Francisco Paisana
d43448e8a1
created security cfg handling class for rrc ue and refactor bearer_list handling
5 years ago
Andre Puschmann
49a375ce1a
arch_select: fix compilation for clang 3
...
In clang 3's C headers, the bit_SSE4_2 and bit_AVX2 macros
aren't defined/supported. So we can only use them if
they exist.
5 years ago
Francisco Paisana
de4d58d8fe
fix coverity scan issues in master
5 years ago
Andre Puschmann
5d92111586
pcap: adding SL-SCH support
5 years ago
Xavier Arteaga
77d5dedddc
Fix LGTM warnings and recommendations
5 years ago
Xavier Arteaga
562590e595
Fix LGTM warnings
5 years ago
Francisco Paisana
6ddedd5972
moved pdu to common mac folder
5 years ago
Andre Puschmann
20d9a83dac
fix printfs of 64bit numbers when compiling for 32 bit
...
this caused issues when compiling in 32bit on RPi2
5 years ago
Andre Puschmann
62e4bd9469
log_ptr: fix issue if accessing log_ptr that was reset already
...
during deinit of the UE/eNB it could happen that the log_ptr
was already set to null but the stack thread was still accessing
it through log_h->info()
i've moved the old macro into a new header and used as as much
as possible. there are still places in the code where similar
macros are used but we would need to change the variable name
to replace them
5 years ago
Francisco Paisana
9f5c2cb92f
fix net log setup
5 years ago
Francisco Paisana
344eaf49ec
use logmap in the whole enb and ue
5 years ago
Francisco Paisana
8e837e173d
printf has already a way to pad spaces. If we use it, we can avoid accidentally adding extra logs because we did srslte::logmap::get("MAC") instead of srslte::logmap::get("MAC ")
5 years ago
Ismael Gomez
7c7c83b9ad
Address comments
5 years ago
Ismael Gomez
fd3d4a7874
Refactor thread_pool: use std::mutex and fix some hidden potential bugs
5 years ago
Francisco Paisana
82cb6baef0
now the whole ue and enb mac uses the logmap
5 years ago
Francisco Paisana
fb967d17a2
now we can disable tprofs individually
5 years ago
Francisco Paisana
e73cbb09b0
created tprof statistic for sliding windows
5 years ago
Xavier Arteaga
e832769ae6
Updated copyright
5 years ago
Francisco Paisana
7548402632
change scell activation interface to use arrays. Added a method to the scheduler to get the current set of activated carriers
5 years ago
Xavier Arteaga
76408b195e
Rename TX_DELAY and FDD_HARQ_DELAY_MS
5 years ago
Andre Puschmann
664170fec6
pcap: add CC index when writing PCAP
5 years ago