Commit Graph

419 Commits

Author SHA1 Message Date
Pedro Alvarez d443604661 Merge next into gtp_cleanup_sn. Fixed some conflicts. 2018-10-04 12:09:13 +01:00
Andre Puschmann 0deda67930 print build-info during epc startup 2018-10-01 21:44:16 +02:00
Pedro Alvarez c1f633c5c7 Dropping bitfields for now. Using #defines and uint8_t for the flags. 2018-10-01 15:17:26 +01:00
Pedro Alvarez e320c33aef Fixed last compilation issues. 2018-09-28 15:42:28 +01:00
Pedro Alvarez ee04639337 Changed gtpu header flags to use a bitfield. Fixing compilation issues. 2018-09-28 13:46:13 +01:00
Andre Puschmann b27ff06e79 Merge remote-tracking branch 'origin/issue_178' into next 2018-09-25 15:10:38 +02:00
Pedro Alvarez b4f9fb06dd Changing EPC to use uint32_to_uint8 function 2018-09-25 12:09:18 +01:00
Andre Puschmann 860d8af911 Merge branch 'master' into next 2018-09-24 15:50:10 +02: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
Andre Puschmann a9d46cbad3 Merge branch 'master' into next_test_after_merge 2018-09-20 13:01:43 +02:00
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.
2018-09-20 12:57:47 +02:00
Pedro Alvarez 597cf18b9d Changing common/debug.h to crash_handler.h 2018-07-13 11:57:15 +01:00
Pedro Alvarez c3ef88e112 Fixing conflicts with next. 2018-07-12 15:43:27 +01:00
Pedro Alvarez 39c5c49189 Fixing coding style of some if statements. 2018-07-12 14:43:14 +01:00
Ismael Gomez 7d324306b3 Default RLC to UM 2018-07-11 12:56:30 +02:00
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. 2018-07-10 15:54:09 +01:00
Pedro Alvarez 151efc61d5 Added s1ap_tx_pdu function. This function will record to pcap if PCAP is enabled. 2018-07-10 15:18:31 +01:00
Pedro Alvarez b89ad628e2 Added config option to enable pcap. 2018-07-10 14:23:21 +01:00
Pedro Alvarez ba5708dc60 Starting to add S1AP pcap to EPC. 2018-07-09 19:17:31 +01:00
Pedro Alvarez 304510ea31 Whitespaces fix. 2018-07-09 16:49:34 +01:00
Pedro Alvarez d00662708f Added srslte_debug_handle_crash to EPC. 2018-07-09 14:39:19 +01:00
Ismael Gomez 67d4096e9e Default RLC to UM 2018-07-07 11:43:40 +02:00
Pedro Alvarez 3d24094829 Merge branch 'next' into epc_sigpipe 2018-07-06 13:01:41 +01:00
Pedro Alvarez a74d1905b4 Fix command line parsing in mbms-gw 2018-07-06 12:23:36 +01:00
Pedro Alvarez 712a1b7639 Fix compiling bug 2018-07-06 12:13:44 +01:00
Pedro Alvarez 1dc5836365 Adding SGi-mb mask to config 2018-07-06 11:52:04 +01:00
Pedro Alvarez ec0d7b0c7b Making sure that MME updates the eNB SCTP info when it receives GUTI attach from attached user. 2018-07-04 17:07:33 +01:00
Pedro Alvarez ced47af7ba Chenging the MBMS-Gw to pass the log to the gtpu_write_header. 2018-07-03 16:58:30 +01:00
Pedro Alvarez dc3cc43e02 Changing SPGW to pass log to lib function. 2018-07-03 14:45:50 +01:00
Pedro Alvarez e2e82cc464 Removing broadcats hack. Returning to a simple TUN insterface on the MBMS-GW. 2018-06-29 11:27:12 +01:00
Pedro Alvarez badbb1de77 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-06-28 14:08:55 +01:00
Pedro Alvarez aee66c3624 Merge branch 'ip_check' into next 2018-06-28 14:08:16 +01:00
Pedro Alvarez 66757573c1 Making sure that QCI helper comments in user_dg.csv stay when file is overwritten. 2018-06-28 12:34:38 +01:00
Pedro Alvarez 99715dc6e2 Adding check for total length as well. 2018-06-28 12:23:29 +01:00
Pedro Alvarez 1826684372 Fixing a compile issue. 2018-06-28 11:17:59 +01:00
Pedro Alvarez 3d2f7d2adf Adding some checks to IP packets at SPGW. 2018-06-28 11:00:58 +01:00
Pedro Alvarez c07de1d9e1 Remove debug print. 2018-06-27 17:46:03 +01:00
Pedro Alvarez 0a6540d8bf Saving QCI into ESM context. Different QCIs should be working now. 2018-06-27 17:45:19 +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 fecdbcff4f Starting to add support to different QCI in EPC. 2018-06-26 16:42:03 +01:00
Pedro Alvarez e57797b786 Cosmetic change. 2018-06-26 12:12:35 +01:00
Pedro Alvarez b8bb270ac7 Cosmetic fix. 2018-06-26 12:08:42 +01:00
Pedro Alvarez f301bb6373 Merging next into op_vs_opc and resolving conflicts. 2018-06-26 11:36:40 +01:00
Pedro Alvarez ad1d32333b Fixing up user_db.csv comments and default values. 2018-06-25 17:59:34 +01:00
Pedro Alvarez 80f7f955ce Making sure that the Security Mode command uses the correct eKSI. 2018-06-25 17:01:53 +01:00
Pedro Alvarez d44a3c44ca Making sure eKSI is changed on re-synch. Re-synch on SYSMOCOM USIMs seem to work. 2018-06-25 12:48:11 +01:00
Pedro Alvarez d3469e51c1 Starting to play with key set identifier. 2018-06-22 19:06:57 +01:00
Pedro Alvarez 11b51e7cb4 Merge branch 'next' into epc_sigpipe 2018-06-22 10:59:54 +01:00
Pedro Alvarez 8df7a1b1af Change some debug prints. 2018-06-19 19:29:09 +01:00