/** * * \section COPYRIGHT * * Copyright 2013-2021 Software Radio Systems Limited * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the distribution. * */ #ifndef SRSENB_DUMMY_CLASSES_COMMON_H #define SRSENB_DUMMY_CLASSES_COMMON_H #include "srsran/interfaces/enb_pdcp_interfaces.h" #include "srsran/interfaces/enb_rlc_interfaces.h" namespace srsenb { class rlc_dummy : public rlc_interface_rrc { public: void clear_buffer(uint16_t rnti) override {} void add_user(uint16_t rnti) override {} void rem_user(uint16_t rnti) override {} void add_bearer(uint16_t rnti, uint32_t lcid, srsran::rlc_config_t cnfg) override {} void add_bearer_mrb(uint16_t rnti, uint32_t lcid) override {} void del_bearer(uint16_t rnti, uint32_t lcid) override {} void write_sdu(uint16_t rnti, uint32_t lcid, srsran::unique_byte_buffer_t sdu) override { last_sdu = std::move(sdu); } bool has_bearer(uint16_t rnti, uint32_t lcid) override { return false; } bool suspend_bearer(uint16_t rnti, uint32_t lcid) override { return true; } bool resume_bearer(uint16_t rnti, uint32_t lcid) override { return true; } void reestablish(uint16_t rnti) override {} srsran::unique_byte_buffer_t last_sdu; }; class pdcp_dummy : public pdcp_interface_rrc, public pdcp_interface_gtpu { public: void set_enabled(uint16_t rnti, uint32_t lcid, bool enabled) override {} void reset(uint16_t rnti) override {} void add_user(uint16_t rnti) override {} void rem_user(uint16_t rnti) override {} void write_sdu(uint16_t rnti, uint32_t lcid, srsran::unique_byte_buffer_t sdu, int pdcp_sn) override {} void add_bearer(uint16_t rnti, uint32_t lcid, srsran::pdcp_config_t cnfg) override {} void del_bearer(uint16_t rnti, uint32_t lcid) override {} void config_security(uint16_t rnti, uint32_t lcid, srsran::as_security_config_t sec_cfg_) override {} void enable_integrity(uint16_t rnti, uint32_t lcid) override {} void enable_encryption(uint16_t rnti, uint32_t lcid) override {} bool get_bearer_state(uint16_t rnti, uint32_t lcid, srsran::pdcp_lte_state_t* state) override { return true; } bool set_bearer_state(uint16_t rnti, uint32_t lcid, const srsran::pdcp_lte_state_t& state) override { return true; } void reestablish(uint16_t rnti) override {} void send_status_report(uint16_t rnti) override {} void send_status_report(uint16_t rnti, uint32_t lcid) override {} std::map get_buffered_pdus(uint16_t rnti, uint32_t lcid) override { return {}; } }; } // namespace srsenb #endif // SRSENB_DUMMY_CLASSES_COMMON_H