|
|
@ -212,7 +212,7 @@ void bearer_cfg_handler::reestablish_bearers(bearer_cfg_handler&& old_rnti_beare
|
|
|
|
old_rnti_bearers.current_drbs.clear();
|
|
|
|
old_rnti_bearers.current_drbs.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int bearer_cfg_handler::add_erab(uint8_t erab_id,
|
|
|
|
int bearer_cfg_handler::addmod_erab(uint8_t erab_id,
|
|
|
|
const asn1::s1ap::erab_level_qos_params_s& qos,
|
|
|
|
const asn1::s1ap::erab_level_qos_params_s& qos,
|
|
|
|
const asn1::bounded_bitstring<1, 160, true, true>& addr,
|
|
|
|
const asn1::bounded_bitstring<1, 160, true, true>& addr,
|
|
|
|
uint32_t teid_out,
|
|
|
|
uint32_t teid_out,
|
|
|
@ -281,6 +281,16 @@ int bearer_cfg_handler::add_erab(uint8_t
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If it is an E-RAB modification, remove previous DRB object
|
|
|
|
|
|
|
|
if (erabs.count(erab_id) > 0) {
|
|
|
|
|
|
|
|
for (auto& drb : current_drbs) {
|
|
|
|
|
|
|
|
if (drb.eps_bearer_id_present and drb.eps_bearer_id == erab_id) {
|
|
|
|
|
|
|
|
srsran::rem_rrc_obj_id(current_drbs, drb.drb_id);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Consider ERAB as accepted
|
|
|
|
// Consider ERAB as accepted
|
|
|
|
erabs[erab_id].id = erab_id;
|
|
|
|
erabs[erab_id].id = erab_id;
|
|
|
|
erabs[erab_id].lcid = lcid;
|
|
|
|
erabs[erab_id].lcid = lcid;
|
|
|
@ -352,7 +362,7 @@ int bearer_cfg_handler::modify_erab(uint8_t e
|
|
|
|
}
|
|
|
|
}
|
|
|
|
auto address = erab_it->second.address;
|
|
|
|
auto address = erab_it->second.address;
|
|
|
|
uint32_t teid_out = erab_it->second.teid_out;
|
|
|
|
uint32_t teid_out = erab_it->second.teid_out;
|
|
|
|
return add_erab(erab_id, qos, address, teid_out, nas_pdu, cause);
|
|
|
|
return addmod_erab(erab_id, qos, address, teid_out, nas_pdu, cause);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int bearer_cfg_handler::add_gtpu_bearer(uint32_t erab_id)
|
|
|
|
int bearer_cfg_handler::add_gtpu_bearer(uint32_t erab_id)
|
|
|
|