nic_router: rename is_ready() to ready()

Ref #4612
This commit is contained in:
Martin Stein 2022-09-19 09:44:55 +02:00 committed by Christian Helmuth
parent 3f1870841c
commit 3a616fed4d
3 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ void Domain::_log_ip_config() const
} }
bool Domain::is_ready() const bool Domain::ready() const
{ {
if (_dhcp_server.valid()) { if (_dhcp_server.valid()) {
if (_dhcp_server().has_invalid_remote_dns_cfg()) { if (_dhcp_server().has_invalid_remote_dns_cfg()) {
@ -62,9 +62,9 @@ bool Domain::is_ready() const
void Domain::update_ready_state() void Domain::update_ready_state()
{ {
bool const ready { is_ready() }; bool const rdy { ready() };
_interfaces.for_each([&] (Interface &interface) { _interfaces.for_each([&] (Interface &interface) {
interface.handle_domain_ready_state(ready); interface.handle_domain_ready_state(rdy);
}); });
} }

View File

@ -223,7 +223,7 @@ class Net::Domain : public Domain_base,
void add_dropped_fragm_ipv4(unsigned long dropped_fragm_ipv4); void add_dropped_fragm_ipv4(unsigned long dropped_fragm_ipv4);
bool is_ready() const; bool ready() const;
void update_ready_state(); void update_ready_state();

View File

@ -461,7 +461,7 @@ void Interface::handle_domain_ready_state(bool state)
void Interface::_refetch_domain_ready_state() void Interface::_refetch_domain_ready_state()
{ {
if (_domain.valid()) { if (_domain.valid()) {
handle_domain_ready_state(_domain().is_ready()); handle_domain_ready_state(_domain().ready());
} else { } else {
handle_domain_ready_state(false); handle_domain_ready_state(false);
} }