|
|
@ -196,8 +196,8 @@ void rrc::add_user(uint16_t rnti)
|
|
|
|
srslte::srslte_pdcp_config_t cfg = {
|
|
|
|
srslte::srslte_pdcp_config_t cfg = {
|
|
|
|
.bearer_id = 1,
|
|
|
|
.bearer_id = 1,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
.tx_direction = SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.rx_direction = SECURITY_DIRECTION_UPLINK,
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12,
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -1534,8 +1534,8 @@ void rrc::ue::send_connection_setup(bool is_setup)
|
|
|
|
// Configure SRB1 in PDCP
|
|
|
|
// Configure SRB1 in PDCP
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg{.bearer_id = 1,
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg{.bearer_id = 1,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_SRB,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_SRB,
|
|
|
|
.tx_direction = SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.rx_direction = SECURITY_DIRECTION_UPLINK,
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_5};
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_5};
|
|
|
|
parent->pdcp->add_bearer(rnti, 1, pdcp_cnfg);
|
|
|
|
parent->pdcp->add_bearer(rnti, 1, pdcp_cnfg);
|
|
|
|
|
|
|
|
|
|
|
@ -1743,8 +1743,8 @@ void rrc::ue::send_connection_reconf(srslte::unique_byte_buffer_t pdu)
|
|
|
|
// Configure SRB2 in PDCP
|
|
|
|
// Configure SRB2 in PDCP
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg_srb = {.bearer_id = 2,
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg_srb = {.bearer_id = 2,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_SRB,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_SRB,
|
|
|
|
.tx_direction = SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.rx_direction = SECURITY_DIRECTION_UPLINK,
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_5};
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_5};
|
|
|
|
parent->pdcp->add_bearer(rnti, 2, pdcp_cnfg_srb);
|
|
|
|
parent->pdcp->add_bearer(rnti, 2, pdcp_cnfg_srb);
|
|
|
|
parent->pdcp->config_security(rnti, 2, k_rrc_enc, k_rrc_int, k_up_enc, cipher_algo, integ_algo);
|
|
|
|
parent->pdcp->config_security(rnti, 2, k_rrc_enc, k_rrc_int, k_up_enc, cipher_algo, integ_algo);
|
|
|
@ -1757,8 +1757,8 @@ void rrc::ue::send_connection_reconf(srslte::unique_byte_buffer_t pdu)
|
|
|
|
// Configure DRB1 in PDCP
|
|
|
|
// Configure DRB1 in PDCP
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg_drb = {.bearer_id = 1,
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg_drb = {.bearer_id = 1,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
.tx_direction = SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.rx_direction = SECURITY_DIRECTION_UPLINK,
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12};
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12};
|
|
|
|
if (conn_reconf->rr_cfg_ded.drb_to_add_mod_list[0].pdcp_cfg.rlc_um_present) {
|
|
|
|
if (conn_reconf->rr_cfg_ded.drb_to_add_mod_list[0].pdcp_cfg.rlc_um_present) {
|
|
|
|
if (conn_reconf->rr_cfg_ded.drb_to_add_mod_list[0].pdcp_cfg.rlc_um.pdcp_sn_size.value ==
|
|
|
|
if (conn_reconf->rr_cfg_ded.drb_to_add_mod_list[0].pdcp_cfg.rlc_um.pdcp_sn_size.value ==
|
|
|
@ -1826,8 +1826,8 @@ void rrc::ue::send_connection_reconf_new_bearer(LIBLTE_S1AP_E_RABTOBESETUPLISTBE
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_config = {
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_config = {
|
|
|
|
.bearer_id = (uint8_t)(drb_item.drb_id - 1), // TODO: Review all ID mapping LCID DRB ERAB EPSBID Mapping
|
|
|
|
.bearer_id = (uint8_t)(drb_item.drb_id - 1), // TODO: Review all ID mapping LCID DRB ERAB EPSBID Mapping
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
.tx_direction = SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
.rx_direction = SECURITY_DIRECTION_UPLINK,
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12};
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12};
|
|
|
|
parent->pdcp->add_bearer(rnti, lcid, pdcp_config);
|
|
|
|
parent->pdcp->add_bearer(rnti, lcid, pdcp_config);
|
|
|
|
|
|
|
|
|
|
|
|