mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-07 03:40:15 +00:00
parent
6de79ad703
commit
1cfcab536c
@ -30,3 +30,13 @@ Ipv4_config::Ipv4_config(Ipv4_address_prefix interface,
|
|||||||
error("Bad IP configuration");
|
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 ||
|
gateway != other.gateway ||
|
||||||
dns_server != other.dns_server;
|
dns_server != other.dns_server;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*********
|
||||||
|
** log **
|
||||||
|
*********/
|
||||||
|
|
||||||
|
void print(Genode::Output &output) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _IPV4_CONFIG_H_ */
|
#endif /* _IPV4_CONFIG_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user