47 Commits (1b266257a1a7ad6abdf17f0f47f5abba469ff90a)

Author SHA1 Message Date
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
Xavier Arteaga e832769ae6 Updated copyright 5 years ago
Pedro Alvarez 746de79859 Adding const to some setters (adressing Francisco's comments). 5 years ago
Pedro Alvarez 126e6126fa Removed unused function. 5 years ago
Pedro Alvarez 38411a8417 Clang-formated the EPC in preperation for PR. 5 years ago
Pedro Alvarez 3d4f300b6f Moved some helper setters/getters to hss_ue_ctx_t to remove more useless lookups. 5 years ago
Pedro Alvarez 469c3ad273 Removed more useless lookups. 5 years ago
Pedro Alvarez 93fbf741d7 Remove unecessary context lookup in increment_ue_sqn 5 years ago
Pedro Alvarez 4f62e6c08c Started to remove unecesssary lookups in gen_auth_info_answer_milenage 5 years ago
Pedro Alvarez a99ce1fc51 Started to remove unecesssary lookups in gen_auth_info_answer_xor 5 years ago
Pedro Alvarez 98400f65e2 Changed hss ue_ctx map to use unique pointers. 5 years ago
Pedro Alvarez 58bd5631e3 Starting to change map in HSS to use uinque_ptr. 5 years ago
Pedro Alvarez 48f9df8615 Applied clang-format to all of the srsepc folder. 5 years ago
Andre Puschmann 4b01a2e4a0 update copyright notice 6 years ago
Joseph Giovatto fa99aa590e added support for optional ue static ip address (rebase #225) 6 years ago
Pedro Alvarez 3ad19f21b6 Adding per UE authentication algorithm choice to the HSS and users_db.csv. 6 years ago
Pedro Alvarez add60c1288 Applied clang-format to the EPC. 6 years ago
Pedro Alvarez 8dc029cc47 Merging next into NAS cleanup. 6 years ago
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.
6 years ago
Pedro Alvarez 4ba777c9c3 Added nas log. Fixed gen_auth_info_anwser. Authentication is working again. 6 years ago
Pedro Alvarez f03967776a Continuing to clean nas.cc 6 years ago
Pedro Alvarez 66db3deeb4 Starting to add Bearer QoS parameter to create session request. 6 years ago
Pedro Alvarez f9e3d3a1f7 Added mechanisms to read and write QCI from/to user_db.csv. 6 years ago
Pedro Alvarez b8bb270ac7 Cosmetic fix. 6 years ago
Pedro Alvarez 6a32b5b047 Starting to separate the increment of SQN into a seperate function. 7 years ago
Pedro Alvarez bd39d8bac2 Fixed bug in getting OPc. Removed debug print. Fixed test12345. UE is still having re-synch issues. 7 years ago
Pedro Alvarez 0d61011d13 Changing user_db.csv to allow users to choose OP/OPc. 7 years ago
David Rupprecht 9d71bec7b6 Unified include guards 7 years ago
David Rupprecht 52e7082aee Small bug fixes, debug print. MAC f1_star does not work 7 years ago
David Rupprecht 5db5399b2f Added HSS sync support (not tested) 7 years ago
David Rupprecht 8ea2e73b63 Making hss an interface for testing 7 years ago
David Rupprecht 3ead643c64 Introducing epc interfaces for hss and srsepc namespace 7 years ago
David Rupprecht 53f05354e6 Making HSS functions private 7 years ago
David Rupprecht 9f3d14cfab Increment sqn 7 years ago
David Rupprecht 5666d3021d Write sqn and user context back to db file 7 years ago
David Rupprecht 1aced47d6a Making the SQN readable from the csv database file 7 years ago
David Rupprecht b1cabf8117 Made MCC and MNC in HSS configurable (not tested) 7 years ago
Pedro Alvarez a8f268c55b Added cleanup functionality to the hss. 7 years ago
Pedro Alvarez 9a0b883296 Added XOR support the the HSS. 7 years ago
Pedro Alvarez aef328d68b Added the ability to the HSS to be configured through a .csv. 7 years ago
Pedro Alvarez 468b0f2581 Fixed some issues with the MME and HSS logging. 7 years ago
Pedro Alvarez 9c54a8b7de Initial code to generate Kasme, rand, autn and xres 7 years ago
Pedro Alvarez 470c815196 Generating RAND 7 years ago
Pedro Alvarez 1a8a2f738b Starting to add SQN generation. 7 years ago
Pedro Alvarez ae18da83b2 Starting to add functions to the HSS to get K, AMF and OP. 7 years ago
Pedro Alvarez efe258fb6f Starting to get the IMSI from the attach request. 7 years ago
Pedro Alvarez ef73254707 Added new HSS class to compute the authentication vectors. 7 years ago