genode/repos/os
Martin Stein 65955601f0 nic_router: find permit rules w/o exceptions
Replaces the former implementation of the 'find_by_port' method at the data
structure for permit rules. This method used to return a reference to the found
object and threw an exception if no matching object was found.

The new implementation doesn't return anything and doesn't throw exceptions. It
takes two lambda arguments instead. One for handling the case that a match was
found with a reference to the matching object as argument and another for
handling the case that no object matches.

This way, expensive exception handling can be avoided and object references
stay in a local scope.

Furthermore, the commit introduces a convenience wrapper for finding the best
matching pair of transport rule and corresponding permit rule for a given
destination IP and port. This method as well follows the above mentioned
concept.

Ref #4536
2022-08-10 13:32:58 +02:00
..
doc Remove SIGNAL/CAP/RAM services from run scripts 2022-04-13 08:08:00 +02:00
include usb_host: handle control URBs asynchronously 2022-08-10 13:32:58 +02:00
lib vfs: implement plugin for 'Capture' session 2022-04-13 09:29:03 +02:00
recipes depot: update recipe hashes 2022-05-31 10:52:11 +02:00
run Consolidate USB test run-scripts 2022-05-25 12:23:03 +02:00
src nic_router: find permit rules w/o exceptions 2022-08-10 13:32:58 +02:00
xsd Remove NIC server role from drivers 2022-05-25 12:19:31 +02:00
README API documentation refinements 2017-05-31 13:16:21 +02:00

This source-code repository contains genuine low-level OS components and
interfaces of Genode. It solely depends on the framework's base API.