mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
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:
parent
a1e32a3ad9
commit
82c763fe75
@ -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 **
|
||||
**********/
|
||||
|
@ -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) { }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user