417 Commits (2ff900d971b39201a7c75606b5b5feceadd9e3dd)

Author SHA1 Message Date
Pedro Alvarez c1f633c5c7 Dropping bitfields for now. Using #defines and uint8_t for the flags. 6 years ago
Pedro Alvarez e320c33aef Fixed last compilation issues. 6 years ago
Pedro Alvarez ee04639337 Changed gtpu header flags to use a bitfield. Fixing compilation issues. 6 years ago
Andre Puschmann b27ff06e79 Merge remote-tracking branch 'origin/issue_178' into next 6 years ago
Pedro Alvarez b4f9fb06dd Changing EPC to use uint32_to_uint8 function 6 years ago
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 7 years ago
Pedro Alvarez c3ef88e112 Fixing conflicts with next. 7 years ago
Pedro Alvarez 39c5c49189 Fixing coding style of some if statements. 7 years ago
Ismael Gomez 7d324306b3 Default RLC to UM 7 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. 7 years ago
Pedro Alvarez 151efc61d5 Added s1ap_tx_pdu function. This function will record to pcap if PCAP is enabled. 7 years ago
Pedro Alvarez b89ad628e2 Added config option to enable pcap. 7 years ago
Pedro Alvarez ba5708dc60 Starting to add S1AP pcap to EPC. 7 years ago
Pedro Alvarez 304510ea31 Whitespaces fix. 7 years ago
Pedro Alvarez d00662708f Added srslte_debug_handle_crash to EPC. 7 years ago
Ismael Gomez 67d4096e9e Default RLC to UM 7 years ago
Pedro Alvarez 3d24094829 Merge branch 'next' into epc_sigpipe 7 years ago
Pedro Alvarez a74d1905b4 Fix command line parsing in mbms-gw 7 years ago
Pedro Alvarez 712a1b7639 Fix compiling bug 7 years ago
Pedro Alvarez 1dc5836365 Adding SGi-mb mask to config 7 years ago
Pedro Alvarez ec0d7b0c7b Making sure that MME updates the eNB SCTP info when it receives GUTI attach from attached user. 7 years ago
Pedro Alvarez ced47af7ba Chenging the MBMS-Gw to pass the log to the gtpu_write_header. 7 years ago
Pedro Alvarez dc3cc43e02 Changing SPGW to pass log to lib function. 7 years ago
Pedro Alvarez e2e82cc464 Removing broadcats hack. Returning to a simple TUN insterface on the MBMS-GW. 7 years ago
Pedro Alvarez badbb1de77 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 7 years ago
Pedro Alvarez aee66c3624 Merge branch 'ip_check' into next 7 years ago
Pedro Alvarez 66757573c1 Making sure that QCI helper comments in user_dg.csv stay when file is overwritten. 7 years ago
Pedro Alvarez 99715dc6e2 Adding check for total length as well. 7 years ago
Pedro Alvarez 1826684372 Fixing a compile issue. 7 years ago
Pedro Alvarez 3d2f7d2adf Adding some checks to IP packets at SPGW. 7 years ago
Pedro Alvarez c07de1d9e1 Remove debug print. 7 years ago
Pedro Alvarez 0a6540d8bf Saving QCI into ESM context. Different QCIs should be working now. 7 years ago
Pedro Alvarez 66db3deeb4 Starting to add Bearer QoS parameter to create session request. 7 years ago
Pedro Alvarez f9e3d3a1f7 Added mechanisms to read and write QCI from/to user_db.csv. 7 years ago
Pedro Alvarez fecdbcff4f Starting to add support to different QCI in EPC. 7 years ago
Pedro Alvarez e57797b786 Cosmetic change. 7 years ago
Pedro Alvarez b8bb270ac7 Cosmetic fix. 7 years ago
Pedro Alvarez f301bb6373 Merging next into op_vs_opc and resolving conflicts. 7 years ago
Pedro Alvarez ad1d32333b Fixing up user_db.csv comments and default values. 7 years ago
Pedro Alvarez 80f7f955ce Making sure that the Security Mode command uses the correct eKSI. 7 years ago
Pedro Alvarez d44a3c44ca Making sure eKSI is changed on re-synch. Re-synch on SYSMOCOM USIMs seem to work. 7 years ago
Pedro Alvarez d3469e51c1 Starting to play with key set identifier. 7 years ago
Pedro Alvarez 11b51e7cb4 Merge branch 'next' into epc_sigpipe 7 years ago
Pedro Alvarez 8df7a1b1af Change some debug prints. 7 years ago
Pedro Alvarez fd97caadb3 Revert "Merge branch 'op_vs_opc' into next"
This reverts commit be2276b8da, reversing
changes made to 4d3fd342f7.
7 years ago
Pedro Alvarez 6a32b5b047 Starting to separate the increment of SQN into a seperate function. 7 years ago