Commit Graph

297 Commits

Author SHA1 Message Date
Francisco Paisana 3bedc93ba5 added _t to unique_byte_buffer type 2019-05-16 12:35:01 +02:00
Francisco Paisana f4aa03154d change queue read and other functions apis 2019-05-16 12:35:01 +02:00
Francisco Paisana f469e2178b replaced byte_buffer_t allocated by the buffer pool for unique_byte_buffer which is safer and easier to use 2019-05-16 12:35:01 +02:00
Francisco Paisana 0976ea6f27 created a unique byte buffer that automatically deallocates 2019-05-16 12:35:01 +02:00
Francisco Paisana b04cb0deb9 using the new choice set api in UE and eNB RRC 2019-05-10 11:59:34 +02:00
Ismael Gomez ef7b0cf7fa Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2019-05-03 00:04:47 +02:00
Ismael Gomez 2d25661706 Fixes UE crashing when stopping and no cell available 2019-05-03 00:04:21 +02:00
Pedro Alvarez 0f36bfbb8a Changing print from console to debug log when generating the PDN connectivity request. 2019-05-02 23:03:29 +01:00
Andre Puschmann f46b582c79 fix default initialization of PHY params in RCC
- this commit splits the reconfiguration of the PHY params
- two functions only update the default params (for config
  dedicated and config common)
- one function only updates the current parameters when a new
  config is given (i.e. after rrc reconfig)
2019-05-02 21:01:26 +02:00
Andre Puschmann e3387ea0b7 fix usim initialization if neither op nor opc are given 2019-05-02 20:27:01 +02:00
Andre Puschmann 389753e5a0 init mac_key in reestab request packing
fixes issue seen by coverity that is not really an issue
because the integrity generation will init it anyway
2019-05-02 11:57:06 +02:00
Pedro Alvarez 63852c5b87 Fixed warnings in ue RRC due to memsetting non-trivial structures. 2019-05-02 11:41:59 +02:00
Andre Puschmann 7ec587bcdc backport support for ipv6 for older glibc 2019-04-30 14:00:19 +02:00
Francisco Paisana 82a0145593 added extra tests in the unpacking of rrc asn1 2019-04-29 17:33:08 +02:00
Andre Puschmann 507e2deaa3 fix mem leaks in RRC after ASN1 unpacking failed 2019-04-29 12:39:02 +02:00
Andre Puschmann 4b01a2e4a0 update copyright notice 2019-04-29 09:20:02 +02:00
Andre Puschmann 11414271d8 only write valid IPv4/v6 packets to tun 2019-04-26 12:10:45 +02:00
Ismael Gomez 7780b1aba5 add tdd/ca support 2019-04-25 20:57:58 +02:00
David Rupprecht dabf586316 ISMI to IMSI typo 2019-04-11 21:38:01 +02:00
David Rupprecht eb3a83ac45 User Plane key in configuration interface 2019-04-11 21:38:01 +02:00
Andre Puschmann d8814a05f0 use stack-allocated messages for tx/rx'ing RRC messages (cherry-picked) 2019-03-19 11:31:10 +01:00
Andre Puschmann 347f427c33 remove unused variables 2019-03-11 13:31:43 +01:00
Andre Puschmann c8f8c16d50
make EIA and EEA algorithms configurable (#323)
this patch allows to configure the EIA and EEA algorithms
the UE uses and announces during attach. They can
be specified as a comma-separated list.

The patch also removes a dedicated NAS config class and uses
the default nas_args_t type for this. There was a full
duplication of members before.

The patch also converts nas_args_t and usim_args_t into a class
with a default constructor that initialize all booleans.
2019-02-08 22:37:16 +01:00
Xavier Arteaga c782ef2aa5 Solved unitialised values in UE (up to prach) and free 2019-01-22 12:23:57 +01:00
Francisco Paisana be06f260db fixed issues in the parsing of sibs 2019-01-21 16:39:00 +00:00
Francisco Paisana 0204db2e12 new asn1 rrc library 2019-01-17 17:43:13 +01:00
Pedro Alvarez c4544f2ede Send detach request correct security header in UE. 2019-01-15 10:30:01 +00:00
Pedro Alvarez b675e1fcc9 Ciphering EMM information message. Chainging detach_request security header in the UE to integrity and ciphered to avoid malformed message. 2019-01-14 17:00:16 +00:00
Andre Puschmann b2bcfca074 add service reject handler 2018-12-17 12:05:22 +01:00
Andre Puschmann 463b00d82d check sys_info_change flag in paging message 2018-12-13 10:54:51 +01:00
Ismael Gomez 8f541cf4e1 Merge branch 'next' into neon_windowed_tdec 2018-12-12 11:47:50 +01:00
Andre Puschmann d7ab2b8d66 add stop_timers function to RRC and call it in rrc::stop()
- this solves an issue with shutting down RRC when the UE
  just sent a connection request (and activated timer T300)
  and stop was called.
2018-12-10 17:48:52 +01:00
Andre Puschmann d6196ba234 simplify RRC-NAS interface and only have msg as param (RRC selects LCID) 2018-12-10 17:48:52 +01:00
Andre Puschmann c9857fe4ad add handler for EMM status message 2018-12-10 17:48:52 +01:00
Andre Puschmann df40259c26 fix issue in PDCP when bearer ID for DRBs was not starting with 1 2018-12-10 16:58:08 +01:00
yagoda 77fb9c3ad5 Merge branch 'next' of https://github.com/softwareradiosystems/srsLTE into next 2018-12-04 17:49:30 +01:00
Andre Puschmann bba2987eb0 print LCID when adding DRB 2018-12-03 15:00:54 +01:00
Pedro Alvarez 548808ecee Changing RRC key logging from debug to info. Small readability fix. 2018-11-30 21:42:43 +01:00
Pedro Alvarez 553f8260bb Fixing up logs and comments. 2018-11-30 21:42:43 +01:00
Pedro Alvarez e3d7ccd7e1 Changed the way UL NAS count is obtained to generate K_enb in the UE. Incrementing UL NAS count on integrity protected dettach request. 2018-11-30 21:42:43 +01:00
Pedro Alvarez dc727a192b Changing way UL NAS count is used to generate the K_enb. 2018-11-30 21:42:43 +01:00
Pedro Alvarez 645bd60d75 More debug prints 2018-11-30 21:42:43 +01:00
yagoda 438bbdf6c1 Merge branch 'next' of https://github.com/softwareradiosystems/srsLTE into next 2018-11-18 14:58:15 +01:00
Andre Puschmann 759ab6341d fix access to possibly uninitialized variable in GW when receiving corrupted pkt 2018-11-15 10:49:50 +01:00
Andre Puschmann 0bd33bbae1 fix heap-overflow when extracting IPv6 address 2018-11-15 10:39:46 +01:00
Andre Puschmann 95ac067b6b send UL info transfer or SRB2 if it is established 2018-11-02 21:28:08 +01:00
Andre Puschmann f449067638 send detach request only integrity protected 2018-10-26 13:12:02 +02:00
Andre Puschmann ae23cfbac7 send detach request in connection request if RRC is not connected 2018-10-26 13:11:58 +02:00
Andre Puschmann 94188c1d7a set TMSI status field during GUTI attach 2018-10-26 13:11:47 +02:00
Andre Puschmann 0571720105 make LCID for UL_DCCH configurable 2018-10-26 13:11:10 +02:00