nic_router: != operator for IP address prefix

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

View File

@ -39,6 +39,12 @@ struct Net::Ipv4_address_prefix
Ipv4_address subnet_mask() const;
Ipv4_address broadcast_address() const;
bool operator != (Ipv4_address_prefix const &other) const
{
return prefix != other.prefix ||
address != other.address;
}
};