diff --git a/lib/include/srslte/common/interfaces_common.h b/lib/include/srslte/common/interfaces_common.h index ee3e41192..15016c5e2 100644 --- a/lib/include/srslte/common/interfaces_common.h +++ b/lib/include/srslte/common/interfaces_common.h @@ -91,12 +91,12 @@ public: hdr_len_bytes = ceil((float)sn_len / 8); } - uint8_t bearer_id; - pdcp_rb_type_t rb_type; - security_direction_t tx_direction; - security_direction_t rx_direction; - uint8_t sn_len; - uint8_t hdr_len_bytes; + uint8_t bearer_id = 1; + pdcp_rb_type_t rb_type = PDCP_RB_IS_DRB; + security_direction_t tx_direction = SECURITY_DIRECTION_DOWNLINK; + security_direction_t rx_direction = SECURITY_DIRECTION_UPLINK; + uint8_t sn_len = PDCP_SN_LEN_12; + uint8_t hdr_len_bytes = 2; // TODO: Support the following configurations // bool do_rohc; diff --git a/lib/include/srslte/common/security.h b/lib/include/srslte/common/security.h index 9062d6e9d..2345079bd 100644 --- a/lib/include/srslte/common/security.h +++ b/lib/include/srslte/common/security.h @@ -38,6 +38,7 @@ typedef enum { CIPHERING_ALGORITHM_ID_N_ITEMS, } CIPHERING_ALGORITHM_ID_ENUM; static const char ciphering_algorithm_id_text[CIPHERING_ALGORITHM_ID_N_ITEMS][20] = {"EEA0", "128-EEA1", "128-EEA2"}; + typedef enum { INTEGRITY_ALGORITHM_ID_EIA0 = 0, INTEGRITY_ALGORITHM_ID_128_EIA1,