412 Commits (b75506ac1687b571cf86e58d65a41e58fbc927fb)

Author SHA1 Message Date
Andre Puschmann 860d8af911 Merge branch 'master' into next 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
Andre Puschmann a9d46cbad3 Merge branch 'master' into next_test_after_merge 6 years ago
Zhe Huang cd1fb0d81e Set AMF to all zeros during resync (#213)
During the resync procedure, the security_milenage_f1_star generates a
MAC_S value that does not match the MAC_S value reported in AUTS. This
posts a security risk.

According to 3GPP TS 33.102 version 11.5.1 section 6.3.3, the AMF used
to calculate MAC-S assumes a dummy value of all zeros so that it does
not need to be transmitted in the clear in the re-synch message.

This patch corrects this problem. MAC_S reported by AUTS matches the
MAC_S calculated using f1_star function after the fix.
6 years ago
Pedro Alvarez 597cf18b9d Changing common/debug.h to crash_handler.h 6 years ago
Pedro Alvarez c3ef88e112 Fixing conflicts with next. 6 years ago
Pedro Alvarez 39c5c49189 Fixing coding style of some if statements. 6 years ago
Ismael Gomez 7d324306b3 Default RLC to UM 6 years ago
Pedro Alvarez 55a6c3d808 Changed the epc.conf to have some instructions how to configure wireshark to decode the S1AP packets from the epc.pcap file. 6 years ago
Pedro Alvarez 151efc61d5 Added s1ap_tx_pdu function. This function will record to pcap if PCAP is enabled. 6 years ago
Pedro Alvarez b89ad628e2 Added config option to enable pcap. 6 years ago
Pedro Alvarez ba5708dc60 Starting to add S1AP pcap to EPC. 6 years ago
Pedro Alvarez 304510ea31 Whitespaces fix. 6 years ago
Pedro Alvarez d00662708f Added srslte_debug_handle_crash to EPC. 6 years ago
Ismael Gomez 67d4096e9e Default RLC to UM 6 years ago
Pedro Alvarez 3d24094829 Merge branch 'next' into epc_sigpipe 6 years ago
Pedro Alvarez a74d1905b4 Fix command line parsing in mbms-gw 6 years ago
Pedro Alvarez 712a1b7639 Fix compiling bug 6 years ago
Pedro Alvarez 1dc5836365 Adding SGi-mb mask to config 6 years ago
Pedro Alvarez ec0d7b0c7b Making sure that MME updates the eNB SCTP info when it receives GUTI attach from attached user. 6 years ago
Pedro Alvarez ced47af7ba Chenging the MBMS-Gw to pass the log to the gtpu_write_header. 6 years ago
Pedro Alvarez dc3cc43e02 Changing SPGW to pass log to lib function. 6 years ago
Pedro Alvarez e2e82cc464 Removing broadcats hack. Returning to a simple TUN insterface on the MBMS-GW. 6 years ago
Pedro Alvarez badbb1de77 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 6 years ago
Pedro Alvarez aee66c3624 Merge branch 'ip_check' into next 6 years ago
Pedro Alvarez 66757573c1 Making sure that QCI helper comments in user_dg.csv stay when file is overwritten. 6 years ago
Pedro Alvarez 99715dc6e2 Adding check for total length as well. 6 years ago
Pedro Alvarez 1826684372 Fixing a compile issue. 6 years ago
Pedro Alvarez 3d2f7d2adf Adding some checks to IP packets at SPGW. 6 years ago
Pedro Alvarez c07de1d9e1 Remove debug print. 6 years ago
Pedro Alvarez 0a6540d8bf Saving QCI into ESM context. Different QCIs should be working now. 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 fecdbcff4f Starting to add support to different QCI in EPC. 6 years ago
Pedro Alvarez e57797b786 Cosmetic change. 6 years ago
Pedro Alvarez b8bb270ac7 Cosmetic fix. 6 years ago
Pedro Alvarez f301bb6373 Merging next into op_vs_opc and resolving conflicts. 6 years ago
Pedro Alvarez ad1d32333b Fixing up user_db.csv comments and default values. 6 years ago
Pedro Alvarez 80f7f955ce Making sure that the Security Mode command uses the correct eKSI. 6 years ago
Pedro Alvarez d44a3c44ca Making sure eKSI is changed on re-synch. Re-synch on SYSMOCOM USIMs seem to work. 6 years ago
Pedro Alvarez d3469e51c1 Starting to play with key set identifier. 6 years ago
Pedro Alvarez 11b51e7cb4 Merge branch 'next' into epc_sigpipe 6 years ago
Pedro Alvarez 8df7a1b1af Change some debug prints. 6 years ago
Pedro Alvarez fd97caadb3 Revert "Merge branch 'op_vs_opc' into next"
This reverts commit be2276b8da, reversing
changes made to 4d3fd342f7.
6 years ago
Pedro Alvarez 6a32b5b047 Starting to separate the increment of SQN into a seperate function. 6 years ago
Pedro Alvarez b9c50a93a8 Fixed bug in writing OPc into user_db.csv. 6 years ago
Pedro Alvarez bd39d8bac2 Fixed bug in getting OPc. Removed debug print. Fixed test12345. UE is still having re-synch issues. 6 years ago
Pedro Alvarez e9c3b4c8ce Added OPc suport on EPC. 6 years ago
Pedro Alvarez 0d61011d13 Changing user_db.csv to allow users to choose OP/OPc. 6 years ago
Pedro Alvarez a839817790 Starting to add OPc option to HSS. 6 years ago