mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-14 22:47:12 +00:00
The Interface class of the router is an abstraction for NIC client sessions, NIC server sessions, and Uplink sessions. Nonetheless, Interface generally used to use the packet stream types of the Nic namespace and it worked because the Uplink packet stream types are factually the same (the are typedef'd from the same base type templates with the same parameters). The initial intention of this issue was to remove dependency on the diverse packet stream stream types from Interface. However, this turned out to be more tricky than thought. The Interface class calls function templates on the packet stream types, making a generic virtual interface impossible. And moving the calling code to the session classes as well would produce a lot of redundancy. Therefore, this commit removes only the use of the Nic namespace in the interface.* files by typedef'ing the packet stream types from the generic Genode type templates with the same parameters as in Nic and Uplink. Fixes #4385
This source-code repository contains genuine low-level OS components and interfaces of Genode. It solely depends on the framework's base API.