Commit Graph

419 Commits

Author SHA1 Message Date
Pedro Alvarez d723a806df Merge branch 'next' into epc 2018-03-28 12:25:06 +01:00
Pedro Alvarez 09ac36a618 Making sure DNS address is present in the epc.conf 2018-03-28 12:01:15 +01:00
Pedro Alvarez 49a830e548 Making sure TAU requests are counted. 2018-03-28 11:02:41 +01:00
Andre Puschmann e5534d6017
Remove leftovers from merge 2018-03-26 21:11:39 +02:00
Pedro Alvarez b1f4ee47d1 Temporally removed unhandled UE cap info. 2018-03-26 11:58:35 +01:00
Pedro Alvarez ff103dc4cd Remove debig prints 2018-03-26 11:01:28 +01:00
Pedro Alvarez cb0f7fc8c2 Changed print when service request integrity fails. 2018-03-24 16:36:13 +00:00
Pedro Alvarez ea8e7c9301 Fixed bug in GUTI attach when UE is already attached. 2018-03-24 16:31:29 +00:00
Pedro Alvarez fb1e87cf53 Fixing bug for IMSI attach of already attached user. 2018-03-24 14:59:22 +00:00
Pedro Alvarez 45a1e8425b Fix bug in dettach request from UL Nas transport 2018-03-23 17:15:27 +00:00
Pedro Alvarez 3bc2cb859c Sending ESM information request when GUTI attach passes integrity checks. 2018-03-23 16:50:41 +00:00
Pedro Alvarez d82c0b7f6b Adding handling of detach request. 2018-03-22 22:42:31 +00:00
Pedro Alvarez b73a4da8f9 Starting to add support to NAS detach request. 2018-03-22 18:54:06 +00:00
Pedro Alvarez ba3a579a92 Regenerating k_eNB on guti attach request. 2018-03-22 17:04:40 +00:00
Pedro Alvarez 79517310d0 small fixes on identation 2018-03-22 14:22:04 +00:00
Pedro Alvarez 3d3027f0b7 Fixed GUTI attach when authentication fails. 2018-03-22 14:12:48 +00:00
Pedro Alvarez 62dc65556a Fixed GUTI attach procedure when authentication is successful. Ping works again. 2018-03-21 18:45:23 +00:00
Pedro Alvarez 51e7b3fec6 Fixed IMSI print. 2018-03-21 12:14:11 +00:00
Pedro Alvarez 2ab25f4c1b Getting rid of debug prints. 2018-03-20 16:35:35 +00:00
Pedro Alvarez acc4f925bc getting rid of boost::mutex on MME GTPc entity 2018-03-20 16:35:01 +00:00
Pedro Alvarez f4f8f746da Merging changes from epc branch into guti_attach branch. 2018-03-20 16:10:36 +00:00
Pedro Alvarez 50aeda2009 Fixed bug in SPGW when replacing an existing eNB S1-U TEID. Service request seems to be working for the cases of ECM idle and ECM connected. 2018-03-20 14:52:34 +00:00
Pedro Alvarez 0f45369d44 Trying to fix service request when ECM content is present. 2018-03-16 15:07:23 +00:00
Pedro Alvarez 04d5676db0 Fixed bug to save UE ctx on the mme_ue_s1ap_id_map upon reception of the service request. Service request is now working again for the case where the UE is ECM-IDLE. 2018-03-16 12:55:58 +00:00
Pedro Alvarez d932a2ad85 Starting to add the ability to handle UE context release complete. 2018-03-15 20:04:50 +00:00
Pedro Alvarez 0da56b6a5a Fixed bug with in GUTI attach with unkown M-TMSI. 2018-03-15 16:05:36 +00:00
Pedro Alvarez a8bfa497ef Remove some commented out code. 2018-03-14 18:34:27 +00:00
Pedro Alvarez 1f3ccb9bda Fixed bug in integrity check, UE is IMSI attaching again. 2018-03-14 18:07:07 +00:00
Pedro Alvarez 9617a63d27 continuing to change the way context is stored. Compiling now. 2018-03-14 15:39:43 +00:00
Pedro Alvarez 7d37c6b9c3 Continuing to fix compilation issues. Starting to change S1AP to use the new functions to store ctx. 2018-03-14 13:36:20 +00:00
Pedro Alvarez be84ee854a Changing the way that ECM context is stored to keep uplink teids active when the context is release. 2018-03-14 11:14:44 +00:00
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. 2018-03-12 16:18:32 +00:00
Pedro Alvarez ff8818590a Changing SPGW's handle_create_session_request to check weather GTP context already exists. 2018-03-09 21:30:33 +00:00
Pedro Alvarez d5478ff7a2 Starting to use EMM state to know whether attach request or service request are initiating the NAS. 2018-03-09 16:25:59 +00:00
Pedro Alvarez 9b28527423 Fixed bug in release access bearers request 2018-03-08 17:59:03 +00:00
Pedro Alvarez de936b30d1 Fixed small bug in send create session request. 2018-03-08 16:17:13 +00:00
Pedro Alvarez 6583d6b2e5 Changing handle UE context release to send release access bearer request instead od delte session request. 2018-03-08 15:55:53 +00:00
Pedro Alvarez 2b84e78389 Adding release access bearer request to SPGW. Compiling now. 2018-03-08 14:19:13 +00:00
Pedro Alvarez 2cc4959667 Adding release access bearers request. 2018-03-08 12:50:07 +00:00
Pedro Alvarez 3b338067c9 Changing Delete session request to delete GTP-C context. 2018-03-08 12:13:53 +00:00
Pedro Alvarez ef4ad0aa20 Starting to change delete session request. 2018-03-07 19:15:32 +00:00
Pedro Alvarez a3b31966b8 Changing Activate EPS bearer function to work with IMSI. 2018-03-07 18:48:08 +00:00
Pedro Alvarez 98345ed6a2 Adapting send modify bearer request to new GTP-C context 2018-03-07 18:10:58 +00:00
Pedro Alvarez 0c50ccef1c Changed create session request to keep GTPC context. 2018-03-07 15:36:08 +00:00
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. 2018-03-07 14:58:08 +00:00
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. 2018-03-07 12:17:49 +00:00
Pedro Alvarez 5488609096 Resolving conflicts from merging next. Adding the functionality of echoing the attach type. 2018-03-06 16:54:32 +00:00
Pedro Alvarez 01cf00700a Adding DNS config options 2018-03-06 10:55:22 +00:00
Pedro Alvarez 3efc197f3a Actually changing the attach type. 2018-03-05 10:50:51 +00:00
Pedro Alvarez 0cb1127f93 Sending Service reject to UE as a temporary handling of service requests (Thanks to Merlin Chlosta). 2018-03-05 10:05:58 +00:00
Pedro Alvarez 01e5642882 Replying same attach type to the UE as in the attach request. 2018-03-05 09:51:31 +00:00
Pedro Alvarez c9b459bf8a Fixing Activate default bearer context uninitialized value. 2018-03-05 09:12:01 +00:00
Pedro Alvarez fc280e082f Continuing to add UE capabilities info indication. 2018-02-27 14:45:11 +00:00
Andre Puschmann 252174865c fix coverity issue 2018-02-27 14:37:13 +01:00
Pedro Alvarez ecb846717c Starting to handle UE capability info indication 2018-02-27 13:33:43 +00:00
Pedro Alvarez f7348e8ddf Added print to show unhandled S1AP messages. 2018-02-26 19:37:41 +00:00
Pedro Alvarez ea0585a772 Quick hack to keep the IP in service request. 2018-02-26 18:50:53 +00:00
Pedro Alvarez d301d7599f Quick and dirty hack to not send activate default eps bearer when a service request is received. 2018-02-26 16:03:11 +00:00
Pedro Alvarez 669ef9816f Added packing of TMSI to mobile station identity IE. 2018-02-26 10:39:40 +00:00
Pedro Alvarez d913fdd499 Adding EMM information message. 2018-02-23 10:18:13 +00:00
Pedro Alvarez 7dd734510b added EMM cause 'CS not avilable' and ESM cause 'PDN type only IPv4 allowed.' 2018-02-22 18:38:25 +00:00
Pedro Alvarez b233e9e1ae Fixing bug with k_enb generation. Fixing issue with enb_ue_s1ap_id for service requests without ECM context. 2018-02-22 15:50:05 +00:00
Pedro Alvarez 17c4fa24c0 Merge branch 'next' into guti_attach 2018-02-22 11:54:53 +00:00
Pedro Alvarez 06180a38ef Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-02-22 11:54:25 +00:00
Pedro Alvarez 543cdf8566 Adding handling of service request when no ECM context is present. 2018-02-22 11:51:57 +00:00
Pedro Alvarez a7b540c18e Fixing bug in S1 Setup response. 2018-02-20 18:55:13 +00:00
Pedro Alvarez bdc72c65c4 Adding print to debug TPC issue. 2018-02-20 18:54:41 +00:00
Pedro Alvarez 0389338fe3 whitespace change 2018-02-19 20:54:43 +00:00
Pedro Alvarez 5f4613bffd Fixing conflicts from merge. 2018-02-19 20:09:09 +00:00
Pedro Alvarez c6e2f144d7 Merging next into guti_attach branch 2018-02-19 19:38:21 +00:00
Pedro Alvarez c02b67b709 Sending initial context setup request on receiving service request 2018-02-19 19:28:54 +00:00
Pedro Alvarez fc0f1e4c23 Sendind intial context setup in response to service request. 2018-02-19 17:54:01 +00:00
Pedro Alvarez 4ee08fdeca Changing send initial context setup request to not need the create session response struct. 2018-02-19 15:19:07 +00:00
Pedro Alvarez 82b3e5e380 Integrity protection of GUTI attach OK. Attach complete not yet sent. 2018-02-16 19:08:04 +00:00
Pedro Alvarez 2cb1f27ddb Adding UE context release command. Fixing issue when identity response is integrity protected. 2018-02-16 17:47:55 +00:00
Pedro Alvarez 24d394d8ca Fixed some compilation issues. 2018-02-15 18:47:56 +00:00
Pedro Alvarez 2e90ce370b Starting to prepare MME UE context release request. 2018-02-15 18:30:43 +00:00
FabianEckermann 148c0a97bd Read MME APN from epc config 2018-02-15 16:42:26 +01:00
Pedro Alvarez 094a7d272f Fixed bug in short integrity check. Service request integrity check works now. 2018-02-15 13:53:21 +00:00
Pedro Alvarez f4fba4e2f5 Fixed ntohl bug in getting the service request m-tmsi. 2018-02-15 11:58:46 +00:00
Pedro Alvarez 7ae2975de4 Starting to get M-TMSI from service request. 2018-02-14 17:40:05 +00:00
Pedro Alvarez 1c4dce8066 Generating k_enb in the securty mode command. Fixed wrong k_enb generation. Integrity is being checked corretly in upstream NAS messages. 2018-02-14 12:28:55 +00:00
Pedro Alvarez 012f026543 Added print of UL NAS count and DL NAS count in nas_transport. 2018-02-14 10:59:54 +00:00
Pedro Alvarez aedcfbb686 Added print of UL NAS Count 2018-02-14 10:48:44 +00:00
Pedro Alvarez fa86862e8a Incrementing DL NAS COUNT and UL NAS COUNT. k_eNB is being generated incorrectly. 2018-02-13 19:40:13 +00:00
Pedro Alvarez 28d5130320 Incrementing DL NAS count 2018-02-13 18:29:21 +00:00
Pedro Alvarez 26f782d8a4 Starting to integrity check all Uplink NAS Transport messages. 2018-02-13 17:45:25 +00:00
Pedro Alvarez 3f7bea1af6 Starting to integrity check GUTI attach. Integrity failing for now. 2018-02-12 16:19:31 +00:00
Ismael Gomez ad703d5758 Add missing include 2018-02-12 09:57:37 +01:00
Pedro Alvarez fdc7a0d334 Removed misleading print. 2018-02-09 15:30:31 +00:00
Pedro Alvarez cc9845ef07 Merging HSS resynch functionality from David Rupprecht. Resolving conflict in user_db.csv. 2018-02-09 15:04:22 +00:00
Pedro Alvarez 1bef5cebf6 small commit 2018-02-09 10:29:40 +00:00
Pedro Alvarez 3b90c71c66 changing a comment 2018-02-08 14:08:02 +00:00
Pedro Alvarez 2cc717b506 Starting to check NAS intgrity of GUTI attach. 2018-02-08 13:57:30 +00:00
Pedro Alvarez 386e56ef40 Fixed bug when GUTI is unknown but EMM context was previously present. Added function to delete EMM context. 2018-02-07 18:13:51 +00:00
Pedro Alvarez fc1629a06e Fixed bug with getting EMM context in handle identity request. Attach with unknown GUTI starting to work again. 2018-02-07 16:53:09 +00:00
Pedro Alvarez 95bc4f8b08 adding tmp emm storage for when the UE uses an unknown guti and id request has to be sent. 2018-02-07 14:11:42 +00:00
Pedro Alvarez 22e0313c53 Merge branch 'next' into guti_attach 2018-02-06 19:13:13 +00:00
Pedro Alvarez 47b574a3ba Removed unused value in ECM ctx 2018-02-06 18:59:53 +00:00
Pedro Alvarez 77b3cc97cd Changing AMF value in user_db.csv to to have a separation bit of 1. 2018-02-06 17:46:27 +00:00
Pedro Alvarez af927eb1d8 Changing handling of ue context release request. Compiling now, needs testing. 2018-02-06 17:21:18 +00:00
Pedro Alvarez 0c013c19ca changed handle intial context setup response. 2018-02-06 16:33:58 +00:00
Pedro Alvarez 86adc29ce8 Changing send initial context setup. 2018-02-06 16:23:41 +00:00
Pedro Alvarez 7c21b4cc11 changing handle of guti attach request. 2018-02-06 14:37:39 +00:00
Pedro Alvarez 7306d00ea5 Changed attach request handling for separate EMM and ECM context. 2018-02-06 12:58:47 +00:00
Pedro Alvarez 97f60ae6ff starting to change handle_attach_request to support separate EMM and ECM context. 2018-02-06 12:19:18 +00:00
Pedro Alvarez 1df3f04192 Changing handle nas security mode complete. 2018-02-05 18:06:19 +00:00
Pedro Alvarez 085830d910 Changing delete functions to delete both EMM and ECM context. 2018-02-05 15:55:41 +00:00
Pedro Alvarez d9da1f84f0 Continuing to separate EMM and ECM context 2018-02-05 15:33:16 +00:00
Pedro Alvarez a0d727166f Starting to split EMM and ECM context. 2018-02-05 13:11:03 +00:00
Pedro Alvarez 336af1ed93 Adding functions to get context from IMSI or MME UE S1AP Id. 2018-02-05 12:26:23 +00:00
Pedro Alvarez cc9e1294c6 re-organized some functions. 2018-02-05 10:46:57 +00:00
Pedro Alvarez 0beb54e696 Re-organized some functions. 2018-02-03 17:36:57 +00:00
Pedro Alvarez 955be59a59 starting to add EMM states to keep EMM state, security context, etc., even when UE context release request is received. 2018-02-03 11:06:03 +00:00
Pedro Alvarez c4b2dd5e65 Starting to add the response to the service request. 2018-02-02 19:08:51 +00:00
Pedro Alvarez 094e4a6f8e Merge branch 'next' into epc 2018-02-02 12:14:33 +00:00
Pedro Alvarez 2e777244aa Fixed un-initialezed values in pack_attach_accept. 2018-01-31 15:22:54 +00:00
Pedro Alvarez 04280a1cd7 Fixed possible out-of-bounds read in nas_attach_complete. 2018-01-31 15:16:37 +00:00
Pedro Alvarez f4c1a7a379 Fixed error in un-initialized print in handle_nas_authentication_response. 2018-01-31 14:51:42 +00:00
Pedro Alvarez 05576df327 Fixed possibly non-null terminated string in spgw. 2018-01-31 14:40:04 +00:00
Pedro Alvarez fd7ba9852b Close sockect on error in S1AP. 2018-01-31 14:13:55 +00:00
Pedro Alvarez 7013865c0d fixed un-initialized values in attach accept. 2018-01-30 14:41:23 +00:00
Andre Puschmann aa6699e25f Merge branch 'master' into next 2018-01-30 14:22:50 +01:00
David Rupprecht 52e7082aee Small bug fixes, debug print. MAC f1_star does not work 2018-01-29 16:12:36 +01:00
David Rupprecht 244b68e76b Added authentication failure in s1ap 2018-01-29 16:12:36 +01:00
David Rupprecht 5db5399b2f Added HSS sync support (not tested) 2018-01-29 16:12:36 +01:00
David Rupprecht 8ea2e73b63 Making hss an interface for testing 2018-01-29 16:12:36 +01:00
David Rupprecht 3ead643c64 Introducing epc interfaces for hss and srsepc namespace 2018-01-29 16:12:36 +01:00
David Rupprecht 53f05354e6 Making HSS functions private 2018-01-29 16:12:36 +01:00
David Rupprecht 9f3d14cfab Increment sqn 2018-01-29 16:12:36 +01:00
David Rupprecht 9f5affb6c7 Clean up file 2018-01-29 16:12:36 +01:00
David Rupprecht 5666d3021d Write sqn and user context back to db file 2018-01-29 16:12:36 +01:00
David Rupprecht 7476b2f896 Beautiful IMSI output 2018-01-29 16:12:36 +01:00
David Rupprecht 2835ec4124 Add description for algo in example file 2018-01-29 16:12:36 +01:00
David Rupprecht 1aced47d6a Making the SQN readable from the csv database file 2018-01-29 16:12:36 +01:00
Ismael Gomez e8985dbdbc
Merge pull request #137 from pily112/Configurable_mcc_mnc_in_HSS
Configurable mcc mnc in hss, debug prints and fix MAC failure error
2018-01-28 21:08:18 +01:00
Pedro Alvarez af2816f83f Staring to make APN configurable. 2018-01-26 17:43:21 +00:00
Andre Puschmann 03e7d9c199 register handler for SIGTERM and SIGKILL in UE, eNB and EPC 2018-01-26 16:18:49 +01:00
Pedro Alvarez 628ccec07f Removed boost::mutex from EPC 2018-01-24 16:41:59 +00:00
Pedro Alvarez aa437806d8 rm boost::mutex from s1ap_ctx_mngmt 2018-01-24 15:47:06 +00:00
Pedro Alvarez 360bb5e2d6 rm boost::mutex from s1ap_mngmnt_proc 2018-01-24 13:50:03 +00:00
Pedro Alvarez d87023bb37 rm boost::mutex from s1ap_nas_transport 2018-01-24 11:17:34 +00:00
Pedro Alvarez 99e1a9f038 rm boost::mutex from MME 2018-01-24 10:31:47 +00:00
Pedro Alvarez 724bc6cbb5 rm boost::mutex from S1AP. 2018-01-23 15:26:54 +00:00
David Rupprecht 9f4e8c0632 Fixed MAC failure due to wrong size and xor debug prints 2018-01-22 14:35:38 +01:00
Pedro Alvarez 5bbfc17fc0 Fixed bzero of std::string bug in setting APN in attach accept msg. 2018-01-22 12:30:52 +00:00
David Rupprecht ab2fe19704 Add more debug logging into hss 2018-01-22 10:31:46 +01:00
David Rupprecht b1cabf8117 Made MCC and MNC in HSS configurable (not tested) 2018-01-22 09:46:27 +01:00
Andre Puschmann efd4a25044 fix EPC conf example 2018-01-19 12:01:02 +01:00
Pedro Alvarez 9dc0d9bac9 Merge branch 'epc_fixes' into epc 2018-01-18 17:25:27 +00:00