193 Commits (af5a329fecfc3728a79c25af6685498ea2cc103d)

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
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 1dc5836365 Adding SGi-mb mask to config 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 b8bb270ac7 Cosmetic fix. 6 years ago
Pedro Alvarez f301bb6373 Merging next into op_vs_opc and resolving conflicts. 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 11b51e7cb4 Merge branch 'next' into epc_sigpipe 6 years ago
Pedro Alvarez 6a32b5b047 Starting to separate the increment of SQN into a seperate function. 6 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
yagoda fac8bb7b7a adding mbms-gw broadcast support, adding parameter for automatic mbms service start 7 years ago
yagoda e4c3f0bc30 adding mbms-gw and mch generation tables 7 years ago
David Rupprecht 01985fbffa private internal nas methods 7 years ago
Pedro Alvarez 362c856e53 Changed UE set to be accessible from SCTP association. 7 years ago
Pedro Alvarez 300b9e7757 Starting to add UEs to the eNB context again. 7 years ago
Pedro Alvarez a6fbdb62cd Adding function to mark the UE as present to in the eNB 7 years ago
David Rupprecht 06d4559294 Change include path absolut to project dir 7 years ago
David Rupprecht 9d71bec7b6 Unified include guards 7 years ago
Andre Puschmann 2227b0fb26 Merge branch 'epc' into next 7 years ago
Andre Puschmann ded550b793 remove unneeded boost includes 7 years ago
Pedro Alvarez 49a830e548 Making sure TAU requests are counted. 7 years ago
Pedro Alvarez b1f4ee47d1 Temporally removed unhandled UE cap info. 7 years ago
Pedro Alvarez d82c0b7f6b Adding handling of detach request. 7 years ago
Pedro Alvarez b73a4da8f9 Starting to add support to NAS detach request. 7 years ago
Pedro Alvarez f4f8f746da Merging changes from epc branch into guti_attach branch. 7 years ago
Pedro Alvarez d932a2ad85 Starting to add the ability to handle UE context release complete. 7 years ago
Pedro Alvarez 1f3ccb9bda Fixed bug in integrity check, UE is IMSI attaching again. 7 years ago
Pedro Alvarez 9617a63d27 continuing to change the way context is stored. Compiling now. 7 years ago
Pedro Alvarez 7d37c6b9c3 Continuing to fix compilation issues. Starting to change S1AP to use the new functions to store ctx. 7 years ago
Pedro Alvarez be84ee854a Changing the way that ECM context is stored to keep uplink teids active when the context is release. 7 years ago
Pedro Alvarez be09457ccb Starting to make sure that UL S1-U fteid and S11 SGW ctr fteid are kept, even when UE context release is called. 7 years ago
Pedro Alvarez ff8818590a Changing SPGW's handle_create_session_request to check weather GTP context already exists. 7 years ago
Pedro Alvarez d5478ff7a2 Starting to use EMM state to know whether attach request or service request are initiating the NAS. 7 years ago
Pedro Alvarez 6583d6b2e5 Changing handle UE context release to send release access bearer request instead od delte session request. 7 years ago
Pedro Alvarez 2b84e78389 Adding release access bearer request to SPGW. Compiling now. 7 years ago
Pedro Alvarez 2cc4959667 Adding release access bearers request. 7 years ago
Pedro Alvarez 3b338067c9 Changing Delete session request to delete GTP-C context. 7 years ago
Pedro Alvarez a3b31966b8 Changing Activate EPS bearer function to work with IMSI. 7 years ago
Pedro Alvarez 98345ed6a2 Adapting send modify bearer request to new GTP-C context 7 years ago
Pedro Alvarez 0c50ccef1c Changed create session request to keep GTPC context. 7 years ago
Pedro Alvarez e499fffe01 Starting to save GTP-C context in a map, to keep the GTP-C connection even when the NAS connection is released. 7 years ago
Pedro Alvarez e9213f807d Starting to change SPGW to handle release access bearers request. Changing MME GTPC entity to contain an IMSI to sgw_ctr_fteid and ctr_teid to IMSI maps. 7 years ago
Pedro Alvarez 5488609096 Resolving conflicts from merging next. Adding the functionality of echoing the attach type. 7 years ago
Pedro Alvarez 01cf00700a Adding DNS config options 7 years ago