mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-23 02:32:44 +00:00
The DHCP client of the NIC router used to end up in an uncaught exception if an IP address in the DNS server option of a DHCP ACK was invalid. This commit makes the 'Dns_server' constructor (where the exception originated from) private and instead introduces a public lambda method 'construct' that calls one lambda argument on success and another on failure. This is also in line with the most recent changes to the 'find_by_*' methods of other classes in the NIC router and contributes to the goal of reducing expensive exception handling. Fixes #4465
This source-code repository contains genuine low-level OS components and interfaces of Genode. It solely depends on the framework's base API.