Commit Graph

53 Commits

Author SHA1 Message Date
Alejandro Leal Conejos 1a64c6adad Enum fixes so clang 12 can build the repo 2021-10-14 08:48:04 +02:00
David Rupprecht e8a464228d Cleaned string helpers 2021-09-16 15:24:32 +02:00
Codebot 4523ee6087 rename srsLTE to srsRAN 2021-03-21 21:47:01 +01:00
Francisco 3e9f93eb8a refactor - remove old log_filter and logmap libraries from the codebase 2021-03-11 20:10:54 +00:00
faluco c18e35bc93
Upgrade loggers in srsepc (#2167)
* Started logger replacement in epc main.

* Replaced loggers in nas and s1ap.

* Replace loggers in nas statics.

* Replaced loggers in s1ap ctx mngmt.

* Replace loggers in s1ap erab mngmt.

* Replaced loggers in s1ap mngmt proc.

* Replaced loggers in s1ap nas transport.

* Replaced loggers in s1ap paging.

* Replaced loggers in mme.

* Replaced loggers in mme gtpc.

* Started removing logger injection in init functions and cleaned up argument passing to nas statics.

* Remove logger injection from mme and s1ap.

* Replaced loggers in the hss class.

* Replaced loggers in gtpc.

* Replaced loggers in GTPU and SPGW.

* Replaced loggers in MBMS.
2021-01-29 11:29:20 +01:00
Andre Puschmann 07d2bc4fe8 change license header to agnostic version with hint to root LICENSE file 2020-12-12 15:59:25 +01:00
faluco cfd3f51931
Import of srslog into srsepc and srsenb. (#1574)
* - Import of srslog into srsepc and srsenb.
* - Removed logger_file and logger_stdout files.
2020-07-30 19:17:23 +02:00
Xavier Arteaga e832769ae6 Updated copyright 2020-03-16 11:26:06 +01:00
Pedro Alvarez 746de79859 Adding const to some setters (adressing Francisco's comments). 2020-02-26 18:15:13 +00:00
Pedro Alvarez 126e6126fa Removed unused function. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 38411a8417 Clang-formated the EPC in preperation for PR. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 3d4f300b6f Moved some helper setters/getters to hss_ue_ctx_t to remove more useless lookups. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 469c3ad273 Removed more useless lookups. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 93fbf741d7 Remove unecessary context lookup in increment_ue_sqn 2020-02-26 18:15:13 +00:00
Pedro Alvarez 4f62e6c08c Started to remove unecesssary lookups in gen_auth_info_answer_milenage 2020-02-26 18:15:13 +00:00
Pedro Alvarez a99ce1fc51 Started to remove unecesssary lookups in gen_auth_info_answer_xor 2020-02-26 18:15:13 +00:00
Pedro Alvarez 98400f65e2 Changed hss ue_ctx map to use unique pointers. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 58bd5631e3 Starting to change map in HSS to use uinque_ptr. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 48f9df8615 Applied clang-format to all of the srsepc folder. 2019-10-18 15:40:40 +02:00
Andre Puschmann 4b01a2e4a0 update copyright notice 2019-04-29 09:20:02 +02:00
Joseph Giovatto fa99aa590e added support for optional ue static ip address (rebase #225) 2019-04-11 15:55:46 +02:00
Pedro Alvarez 3ad19f21b6 Adding per UE authentication algorithm choice to the HSS and users_db.csv. 2019-04-09 17:17:02 +02:00
Pedro Alvarez add60c1288 Applied clang-format to the EPC. 2019-03-20 14:00:02 +01:00
Pedro Alvarez 8dc029cc47 Merging next into NAS cleanup. 2018-09-25 18:56:03 +01:00
Zhe Huang 8b526e1c20 Fix SQN incrementation arithmetic (#212)
* Fix SQN incrementation arithmetic

Current implementation of increment_sqn function increments the 48 bits
SQN directly by 1 which is incorrect according to 3GPP TS 33.102 version
11.5.1 Annex C. This bug causes commercial UEs to report AUTHENTICATION
FAILURE EMM cause #21 "synch failure" when SQN is out of sync.

According to 3GPP TS 33.102 version 11.5.1 Annex C, 48 bits SQN consists
of 43 bits SEQ and 5 bits IND parts where SEQ are incremented during
generation of authentication vector or resync procedure. A
new IND value is also assigned when an authentication vector is
generated. However, resync procedure will use the same IND value.

This patch implements the increment_sqn function according to 3GPP TS
33.102 version 11.5.1 Annex C. A new function increment_seq_after_resync
is added to handle the special case of SQN arithmetic during SQN
resynchronization.

This patch is tested with two comercial UEs (Oneplus One and Oneplus 3T).

* Fix the maximum value of SEQ value to be 2^43-1

The SEQ value is 43 bits long and previous maximum value has a typo (one
extra F) which allows SEQ value to be 2^47-1. This patch corrects the typo.
2018-09-24 11:28:07 +02:00
Pedro Alvarez 4ba777c9c3 Added nas log. Fixed gen_auth_info_anwser. Authentication is working again. 2018-07-24 18:38:16 +01:00
Pedro Alvarez f03967776a Continuing to clean nas.cc 2018-07-20 19:50:46 +01:00
Pedro Alvarez 66db3deeb4 Starting to add Bearer QoS parameter to create session request. 2018-06-27 15:10:17 +01:00
Pedro Alvarez f9e3d3a1f7 Added mechanisms to read and write QCI from/to user_db.csv. 2018-06-26 17:39:23 +01:00
Pedro Alvarez b8bb270ac7 Cosmetic fix. 2018-06-26 12:08:42 +01:00
Pedro Alvarez 6a32b5b047 Starting to separate the increment of SQN into a seperate function. 2018-06-19 18:09:14 +01:00
Pedro Alvarez bd39d8bac2 Fixed bug in getting OPc. Removed debug print. Fixed test12345. UE is still having re-synch issues. 2018-06-18 19:32:50 +01:00
Pedro Alvarez 0d61011d13 Changing user_db.csv to allow users to choose OP/OPc. 2018-06-18 17:21:06 +01:00
David Rupprecht 9d71bec7b6 Unified include guards 2018-03-31 19:04:04 +02:00
David Rupprecht 52e7082aee Small bug fixes, debug print. MAC f1_star does not work 2018-01-29 16:12:36 +01:00
David Rupprecht 5db5399b2f Added HSS sync support (not tested) 2018-01-29 16:12:36 +01:00
David Rupprecht 8ea2e73b63 Making hss an interface for testing 2018-01-29 16:12:36 +01:00
David Rupprecht 3ead643c64 Introducing epc interfaces for hss and srsepc namespace 2018-01-29 16:12:36 +01:00
David Rupprecht 53f05354e6 Making HSS functions private 2018-01-29 16:12:36 +01:00
David Rupprecht 9f3d14cfab Increment sqn 2018-01-29 16:12:36 +01:00
David Rupprecht 5666d3021d Write sqn and user context back to db file 2018-01-29 16:12:36 +01:00
David Rupprecht 1aced47d6a Making the SQN readable from the csv database file 2018-01-29 16:12:36 +01:00
David Rupprecht b1cabf8117 Made MCC and MNC in HSS configurable (not tested) 2018-01-22 09:46:27 +01:00
Pedro Alvarez a8f268c55b Added cleanup functionality to the hss. 2017-12-17 16:30:50 +00:00
Pedro Alvarez 9a0b883296 Added XOR support the the HSS. 2017-12-15 18:20:57 +00:00
Pedro Alvarez aef328d68b Added the ability to the HSS to be configured through a .csv. 2017-12-13 19:50:19 +00:00
Pedro Alvarez 468b0f2581 Fixed some issues with the MME and HSS logging. 2017-11-08 14:10:25 +00:00
Pedro Alvarez 9c54a8b7de Initial code to generate Kasme, rand, autn and xres 2017-11-01 15:14:41 +00:00
Pedro Alvarez 470c815196 Generating RAND 2017-11-01 14:07:44 +00:00
Pedro Alvarez 1a8a2f738b Starting to add SQN generation. 2017-10-31 19:34:10 +00:00