mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-14 22:47:12 +00:00
Creating and destructing an interface was not considered a change of its real link state as defined in the description of the <report link_state_triggers=""> config attribute in the router's README. In case of Uplink sessions this is obviously a problem as they communicate their real link state through session lifetime. But also in case of NIC sessions it's a possible to create an interface that is immediately "up" after creation or destruct an interface without its link state going "down" beforehand. Taking into account also the practical application of the <report link_state_triggers=""> attribute, reporting only on destruction and construction of interfaces that are "up" seems shorthanded. This is because a report-receiver most likely needs to be able to synchronize the lifetime of the objects that keep track of the link states with the lifetime of the corresponding sessions. That said, with this commit, the router triggers a report update on each session construction/destruction when <report link_state_triggers=""> is set. Fixes #4462
This source-code repository contains genuine low-level OS components and interfaces of Genode. It solely depends on the framework's base API.