nic_router: != operator for IP config

Ref #2670
This commit is contained in:
Martin Stein 2018-03-19 19:15:25 +01:00 committed by Christian Helmuth
parent ec240a64d9
commit 930c29a50c

View File

@ -33,6 +33,12 @@ struct Net::Ipv4_config
Ipv4_address gateway);
Ipv4_config() { }
bool operator != (Ipv4_config const &other) const
{
return interface != other.interface ||
gateway != other.gateway;
}
};
#endif /* _IPV4_CONFIG_H_ */