572 Commits (7990e2f56345d3b130d7b035c3fabe3a99d56451)

Author SHA1 Message Date
Pedro Alvarez b675e1fcc9 Ciphering EMM information message. Chainging detach_request security header in the UE to integrity and ciphered to avoid malformed message. 6 years ago
Pedro Alvarez b5d5f9f91c Re-adding support for EIA2 in EPC. 6 years ago
Pedro Alvarez 179aeddfa2 Added encryption of security mode command and attach accept again. Attach is working with encryption. 6 years ago
Pedro Alvarez 412b08c4bf Fixed UL nas count increment for GUTI with known UE and Service Request. Both seem to work now. 6 years ago
Pedro Alvarez 997c24c099 Added config of cipher_algo and integ_algo initialization in NAS class. 6 years ago
Pedro Alvarez 5eacdd5418 Fixed compilation issues. Attach failing with COTS UE. 6 years ago
Pedro Alvarez 31a25067f5 Merging David Ruprecth's mme_msg_encryption branch into next. Not compiling. 6 years ago
Pedro Alvarez a5a7eb02d2 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 6 years ago
Andre Puschmann df7ab7ffe8 Merge branch 'master' into next 6 years ago
Pedro Alvarez 60fdc9ebe2 Small commit. 6 years ago
Pedro Alvarez ac0aa76afc Small print changes on NAS. 6 years ago
Pedro Alvarez 9380d56bbf Changing prints in S1AP and SPGW. 6 years ago
Pedro Alvarez 7fd6ae4c40 Changing NAS printing. 6 years ago
Pedro Alvarez 983ba4a3ab Strating to change prints in the HSS. 6 years ago
yagoda 94ec379f68 Small commit to test changes in prints. 6 years ago
rubund b801c3dd4e Fix some spelling errors detected by lintian (#271) 6 years ago
Pedro Alvarez 0320d475e9 Fix Uninitialized QoS options in attach accept. 6 years ago
David Rupprecht c480e57721 Config based security algorithm selection 6 years ago
David Rupprecht 3b7eeb5909 Do security (integrity checks in case of NAS UL message 6 years ago
David Rupprecht 1442606ee1 Encryption for ESM request 6 years ago
David Rupprecht 82f69d66dc ul_nas_count increment tau request 6 years ago
David Rupprecht 4a2c563f85 increase uplink ul nas count 6 years ago
David Rupprecht 2543a84aa4 Minor changes in nas uplink transport and increase uplink count 6 years ago
David Rupprecht 718262eaaf restucture NAS uplink message: todo security of message 6 years ago
David Rupprecht 894471e326 restructure handle_initial_ue_message 6 years ago
David Rupprecht 0dfa6426dd restructure handle_initial_ue_message 6 years ago
David Rupprecht e5e091b0c9 Minor fixes and code clean up 6 years ago
David Rupprecht e547883a8f Wrapper functions for integrity generate 6 years ago
Andre Puschmann cd7008a269 fix typo 6 years ago
David Rupprecht 7eef2c1c4b start with decryption function 6 years ago
Andre Puschmann 23836a8ab3 Merge branch 'next' into nas_cleanup 6 years ago
Andre Puschmann 15d439761a log build info in eNB/EPC logs 6 years ago
Pedro Alvarez 3cddad79cc Adding ability to configure names of TUN interfaces. (#277)
* added config option for tun dev names vs fixed names added config option for M1-U interface addr

* Added options to sgi_mb tun name.

* Added some comments to mbms.conf.example

* Added some comments to example configs to explain the new values.
6 years ago
Pedro Alvarez 35ca9ffd34 Adding TTL option 6 years ago
Pedro Alvarez 3ecacdf3a6 Adding selection of local interface at the MBMS-GW. 6 years ago
Pedro Alvarez d443604661 Merge next into gtp_cleanup_sn. Fixed some conflicts. 6 years ago
Andre Puschmann 0deda67930 print build-info during epc startup 6 years ago
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
Pedro Alvarez 8072aaa091 Fixed minor mistake in resolving conflict. 6 years ago
Pedro Alvarez 8dc029cc47 Merging next into NAS cleanup. 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 7bad5a52a0 Merging handling of initial UE messages as static methods into nas cleanup. 6 years ago
Pedro Alvarez 9350e03810 Changed detach request and tracking area update request to nas.cc 6 years ago
Pedro Alvarez d2cb01ce87 Deleted old service request. 6 years ago
Pedro Alvarez a9e5b3b8e9 Changed service request to nas.cc 6 years ago
Pedro Alvarez 4313fb1e72 Making sure M-TMSI is in host order in other small bug fixes. 6 years ago
Pedro Alvarez 3337f21ffa Added handle GUTI attach from known UE again. 6 years ago
Pedro Alvarez 0d80ae795b Added IMSI attach from unknown UE as a static function. 6 years ago
Pedro Alvarez 0ddb3d39dc Moved handle_imsi_attach_request_from_unknown_ue to nas.cc in static method. Working. 6 years ago
Pedro Alvarez 860e1b5491 Changing Handling of initial UE NAS messages to use static methods. Handling of unknown GUTI attach request should be ok. 6 years ago
Pedro Alvarez 9e808ff968 Starting to handle NAS initial UE messages as static methods of the nas class. 6 years ago
Pedro Alvarez c011df5612 Changing Service request to nas.cc 6 years ago
Pedro Alvarez a46f1e4e9a Changing Tracking Area Update Request Initial Message to nas.cc 6 years ago
Pedro Alvarez e3286897ce Changed the rest of the nas handling to use send_downlink_nas_transport. 6 years ago
Pedro Alvarez f1d30c7f23 Changed handle guti_attach_from_known_ue and unknown_ue to use send_downstream_nas_message. 6 years ago
Pedro Alvarez dd725be60c Changed pack identity request. 6 years ago
Pedro Alvarez 65a5139751 Fixed mistake in downlink nas transport. Changing authication request to use downlink_nas_transport. 6 years ago
Pedro Alvarez 21c34b9ce5 Changing security mode complete to use downlink nas transport 6 years ago
Pedro Alvarez 93222f582c Changed authentication response to use downlink_nas_transport(). 6 years ago
Pedro Alvarez 3073ab6822 Changed dettach request to use downlink nas transport. 6 years ago
Pedro Alvarez 749e84315a Starting to add send_downlink_nas_transport helper function. 6 years ago
Pedro Alvarez 8bcc8ecaeb Starting to move initial attach request handling to nas.cc 6 years ago
Pedro Alvarez 872f7adc49 Added find imsi from TMSI helper function. 6 years ago
Pedro Alvarez fa0c8d5995 Moved most of IMSI attach request into nas.cc. 6 years ago
Pedro Alvarez f6b8982939 Moved most of the GUTI attach to nas.cc. 6 years ago
Pedro Alvarez c518d3fde3 Starting to move inital UE messages to nas.cc. Breaking up attach request handling into smaller functions. 6 years ago
Pedro Alvarez 1f2e22adf4 coding style fixup. 6 years ago
Pedro Alvarez 23bd95c432 Whitespace fix. 6 years ago
Pedro Alvarez 55675eb532 Fixed bug in setting MCC and MNC in attach accept. Attach seems to be working again. 6 years ago
Pedro Alvarez 1fba7f0afa Moved function that gets NAS type string to liblte_mme.cc 6 years ago
Pedro Alvarez 127e214b07 Added function to print string of NAS message type based on the message code. 6 years ago
Pedro Alvarez 5d75b16ee9 Fixed up mistake in UE Context Release command. 6 years ago
Pedro Alvarez 7c53330bec Fixed NAS initialization. Attach request seems to work again now. 6 years ago
Pedro Alvarez d76053e7ec Making sure NAS message is added to the initial context setup request. 6 years ago
Pedro Alvarez cdc72b8164 Fix bug in packing of transport layer address 6 years ago
Pedro Alvarez a4be55c030 Fixed bug in re-synch procedure. 6 years ago
Pedro Alvarez 4059b19b57 Coding style fixups in SP-GW. 6 years ago
Pedro Alvarez 66dc1e0700 Fixed up the initialization of NAS context in IMSI attach request. 6 years ago
Pedro Alvarez 7077530a29 Merge branch 'next' into nas_cleanup 6 years ago
Pedro Alvarez 0aed1f47a5 White space fixes. 6 years ago
Pedro Alvarez 4ba777c9c3 Added nas log. Fixed gen_auth_info_anwser. Authentication is working again. 6 years ago
Pedro Alvarez da840ac334 Fix un-initialized buffer pool in nas.cc 6 years ago
Pedro Alvarez 4e78d70d97 Fixing issue in pack identity request. 6 years ago
Pedro Alvarez 6615af57ee Cleaning up handle initial UE message a bit more. 6 years ago
Pedro Alvarez bd2fa4c04b Cleaning up Handle initial UE message 6 years ago
Pedro Alvarez de8679b536 Continuing to cleanup. Starting to compile again. 6 years ago
Pedro Alvarez 406d198eac Cleaning up nas.cc 6 years ago
Pedro Alvarez f03967776a Continuing to clean nas.cc 6 years ago
Pedro Alvarez 6ef3124fc9 Fixed up release ue ctx command. 6 years ago
Pedro Alvarez f350fa5ec0 Small fixes in coding style. 6 years ago
Pedro Alvarez b25c12a084 Fixing nas.cc 6 years ago
Pedro Alvarez 85672d4a3f Fixing up s1ap.cc 6 years ago
Pedro Alvarez 05a34ec8e3 Cleaning up s1ap.cc 6 years ago