Added gw interface if it is running

master
David Rupprecht 4 years ago committed by Andre Puschmann
parent 7a481c40ab
commit cc6d8128ad

@ -51,6 +51,7 @@ class gw_interface_rrc
public:
virtual void add_mch_port(uint32_t lcid, uint32_t port) = 0;
virtual int update_lcid(uint32_t eps_bearer_id, uint32_t new_lcid) = 0;
virtual bool is_running() = 0;
};
class gw_interface_pdcp

@ -66,6 +66,7 @@ public:
// RRC interface
void add_mch_port(uint32_t lcid, uint32_t port);
int update_lcid(uint32_t eps_bearer_id, uint32_t new_lcid);
bool is_running();
private:
static const int GW_THREAD_PRIO = -1;

@ -195,6 +195,12 @@ int gw::setup_if_addr(uint32_t eps_bearer_id,
return SRSRAN_SUCCESS;
}
bool gw::is_running()
{
return running;
}
int gw::update_lcid(uint32_t eps_bearer_id, uint32_t new_lcid)
{
auto it = eps_lcid.find(eps_bearer_id);
@ -349,6 +355,8 @@ void gw::run_thread()
logger.info("GW IP receiver thread exiting.");
}
/**************************/
/* TUN Interface Helpers */
/**************************/

@ -59,6 +59,7 @@ public:
uint8_t* ipv6_if_id,
char* err_str);
int update_lcid(uint32_t eps_bearer_id, uint32_t new_lcid);
bool is_running();
int apply_traffic_flow_template(const uint8_t& eps_bearer_id,
const uint8_t& lcid,

@ -188,6 +188,12 @@ int ttcn3_ue::setup_if_addr(uint32_t eps_bearer_id,
{
return 0;
}
bool ttcn3_ue::is_running()
{
return true;
}
int ttcn3_ue::update_lcid(uint32_t eps_bearer_id, uint32_t new_lcid)
{
return SRSRAN_SUCCESS;

Loading…
Cancel
Save