Commit Graph

5173 Commits

Author SHA1 Message Date
Xavier Arteaga 85171f3ca7 Fix eNb UL PUCCH1b CS decoding 2020-03-02 12:19:09 +01:00
Xavier Arteaga b45223c880 Fix minor MAC Clang warnings 2020-03-02 12:19:09 +01:00
Xavier Arteaga f35ed14f76 SRSENB: refactored PHY common UE database 2020-03-02 12:19:09 +01:00
Xavier Arteaga 2fc0832f05 Addition of DL HARQ-ACK generation procedure for eNb DL and minor aesthetic changes 2020-03-02 12:19:09 +01:00
Andre Puschmann dc8c5687c6 fix rwlock in PDCP
we've used a rdlock but since the users struct is modified, we should be
really using a rwlock
2020-03-01 18:26:45 +01:00
Andre Puschmann e7c10270fa ttcn3_ss: fix security activation for PDCP 2020-03-01 18:26:45 +01:00
Andre Puschmann 9e113f8b27 pdcp: allow to configure security for rx/tx seperately
previously PDCP security (integrity and ciphering) could only
be enabled for both Rx and Tx at the same time.

this, however, caused an issue during the conformance testing in which,
in TC_8_2_1_1() for example, the eNB sends a SecModeCommand and a
RRC Reconfiguration in the same MAC TB. In this case, the eNB
needs to be able to enable DL security right after sending the SecModeCmd
in order to send the RRCReconfig encrypted. However, enabling UL security needs
to be postponed until after the SecModeComplete is received.

This patch allows to enable PDCP security for rx/tx independently if
that is needed. The default way is like before, enabling it for tx/rx at
the same time.
2020-03-01 18:26:45 +01:00
Andre Puschmann 5a03eaed2b ss: move timing_info_t to ttcn3_helpers, fix PDCP count handling 2020-03-01 18:26:45 +01:00
Andre Puschmann 72c5b381e4 fix bug when parsing cipher algo config for SS 2020-03-01 18:26:45 +01:00
Andre Puschmann 8a69772ebc rewrite packing of DL PDU in SS
the new algo tries to write more than just one RLC PDU inside a MAC PDU
if this is possible
2020-03-01 18:26:45 +01:00
Andre Puschmann e919c57a32 add handling of FollowOnFlag from tester 2020-03-01 18:26:45 +01:00
Andre Puschmann 51864bc03c rrc: print release cause when receiving rrc connection release 2020-03-01 18:26:45 +01:00
Francisco Paisana 6b96d21732 extension of the timer test to check safe running timer erasure 2020-02-29 18:00:11 +00:00
Francisco Paisana 79e5bd94cf remove timers from priority queue for which run() or stop() was called. 2020-02-29 18:00:11 +00:00
Francisco Paisana 5b2da779b7 new method in timer_handler to dispatch calls without an associated unique_timer 2020-02-29 18:00:11 +00:00
Francisco Paisana af76778fc8 remove fixmes 2020-02-28 18:03:29 +00:00
Francisco Paisana ac52208409 removed most of clang-tidy warnings, introduced logmap in asn1, fixed info object naming in s1ap and ngap for successful and unsuccessful outcomes 2020-02-28 18:03:29 +00:00
Andre Puschmann dffa2af461 fix NAS re-attach after detach request from network
needed to add a timer to delay transmission of attach request
to allow RRC release on eNB side
2020-02-28 18:09:21 +01:00
Andre Puschmann e4f85ec390 remove re-arming of t3411 after PLMN search
t3411 is restarted after attach or TAU failure only
2020-02-28 18:09:21 +01:00
Andre Puschmann 89d5876470 add TimingInfo support for remaining SS commands 2020-02-28 18:09:21 +01:00
Andre Puschmann 5b31c1db43 nas: delete security context when receiving attach reject with cause 3, 6, or 35 2020-02-28 12:52:44 +01:00
Francisco Paisana 32c347fbb1 hide logmap implementation in source file. Export symbols so they can be used by srsASN1 project 2020-02-28 11:33:26 +00:00
Francisco Paisana e859d622c7 added logref class to forbid logmap pointer invalidation. Created a test for the logref, and introduced it in the scheduler, rrc and nas 2020-02-28 11:33:26 +00:00
Xavier Arteaga e621853566 Minor aesthetics changes 2020-02-28 12:10:32 +01:00
Xavier Arteaga f261365c91 Initial EVM calculation commit and other easthetic changes 2020-02-28 12:10:32 +01:00
Francisco Paisana 4739f3084f fix logs for SIB acquire 2020-02-28 10:08:01 +01:00
Francisco Paisana b8b8740258 fix wraparound in si proc and error in scell parsing 2020-02-28 10:08:01 +01:00
Andre Puschmann 0dd93c793c add CMake option for ZMQ-based end-to-end tests 2020-02-27 21:39:09 +01:00
Andre Puschmann 81e28aa9dc add basic support for TimingInfo field from tester
this fixes an issue where commands are received out of
order and we are therefore applying configs incorrectly. if
commands include a timinginfo we are now putting the command
on a queue that the SS reads after the start of a new TTI.

the security and cell reconfig commands will be added in another
PR after the AS_security command has been fixed.
2020-02-27 21:27:43 +01:00
Pedro Alvarez 746de79859 Adding const to some setters (adressing Francisco's comments). 2020-02-26 18:15:13 +00:00
Pedro Alvarez 126e6126fa Removed unused function. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 1be699ce32 Removed unused variable in HSS. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 38411a8417 Clang-formated the EPC in preperation for PR. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 3d4f300b6f Moved some helper setters/getters to hss_ue_ctx_t to remove more useless lookups. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 88c7988813 Fix bug in re-sync procedure. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 469c3ad273 Removed more useless lookups. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 93fbf741d7 Remove unecessary context lookup in increment_ue_sqn 2020-02-26 18:15:13 +00:00
Pedro Alvarez 4f62e6c08c Started to remove unecesssary lookups in gen_auth_info_answer_milenage 2020-02-26 18:15:13 +00:00
Pedro Alvarez a99ce1fc51 Started to remove unecesssary lookups in gen_auth_info_answer_xor 2020-02-26 18:15:13 +00:00
Pedro Alvarez 98400f65e2 Changed hss ue_ctx map to use unique pointers. 2020-02-26 18:15:13 +00:00
Pedro Alvarez 58bd5631e3 Starting to change map in HSS to use uinque_ptr. 2020-02-26 18:15:13 +00:00
Francisco Paisana 56b0d0d3c3 fix s1ap packing issue 2020-02-26 17:55:12 +00:00
Francisco Paisana 052892916e fix mme/enb id assignment. Also, now using the macro for invalid rnti and a boolean flag for the uninitialized mme s1ap id 2020-02-26 15:17:45 +00:00
Francisco Paisana 2f57db5352 changed invalid rnti to 0 2020-02-26 15:17:45 +00:00
Francisco Paisana 7557ef45c8 changed the s1ap to allow the insertion of users without rnti 2020-02-26 15:17:45 +00:00
Andre Puschmann 55a5947df7 add default init to TTCN3 syssim to prevent segfault when tc_start isn't received 2020-02-26 12:20:23 +01:00
Andre Puschmann 39f2011699 fix issue in SS where Msg4 wouldn't be sent because ConnectionSetup is provided too late 2020-02-25 21:28:15 +01:00
Andre Puschmann b88e877b4c ttcn3: make SS single threaded and use SCTP for test ports
- remove all threading from SS
- use epoll to handle test port connections, signals, and timers
- convert testport interface to SCTP
2020-02-25 21:28:15 +01:00
Andre Puschmann 6d88b640b7 rrc: log full message if decoding fails 2020-02-25 21:28:15 +01:00
Andre Puschmann 0272506add enable TTCN3 and 5GNR for Travis builds 2020-02-24 17:05:00 +01:00