mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-30 08:03:59 +00:00
parent
6de79ad703
commit
1cfcab536c
@ -30,3 +30,13 @@ Ipv4_config::Ipv4_config(Ipv4_address_prefix interface,
|
||||
error("Bad IP configuration");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Ipv4_config::print(Output &output) const
|
||||
{
|
||||
if (valid) {
|
||||
Genode::print(output, "interface ", interface, ", gateway ", gateway,
|
||||
", DNS server ", dns_server); }
|
||||
else {
|
||||
Genode::print(output, "none"); }
|
||||
}
|
||||
|
@ -42,6 +42,13 @@ struct Net::Ipv4_config
|
||||
gateway != other.gateway ||
|
||||
dns_server != other.dns_server;
|
||||
}
|
||||
|
||||
|
||||
/*********
|
||||
** log **
|
||||
*********/
|
||||
|
||||
void print(Genode::Output &output) const;
|
||||
};
|
||||
|
||||
#endif /* _IPV4_CONFIG_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user