nic_router: provide link state

The NIC router always reports the link state "Up" (true) because
the effective link state depends on the targeted remote interface
and thus on the individual routing for each packet. Consequently,
also the signal handler for state changes gets ignored.

Ref #2490
This commit is contained in:
Martin Stein 2017-08-21 18:00:11 +02:00 committed by Christian Helmuth
parent a1e32a3ad9
commit 82c763fe75
2 changed files with 2 additions and 15 deletions

View File

@ -77,19 +77,6 @@ Net::Session_component::Session_component(Allocator &alloc,
}
bool Session_component::link_state()
{
warning("Session_component::link_state not implemented");
return false;
}
void Session_component::link_state_sigh(Signal_context_capability sigh)
{
warning("Session_component::link_state_sigh not implemented");
}
/**********
** Root **
**********/

View File

@ -101,8 +101,8 @@ class Net::Session_component : public Session_component_base,
******************/
Mac_address mac_address() { return _mac; }
bool link_state();
void link_state_sigh(Genode::Signal_context_capability sigh);
bool link_state() { return true; }
void link_state_sigh(Genode::Signal_context_capability) { }
};