| 399 | } |
| 400 | |
| 401 | bool NetworkAddressRep::IsEqualTo(const NetworkAddressRep& other) const { |
| 402 | if (version_ != other.version_) { |
| 403 | return false; |
| 404 | } |
| 405 | if (version_ == IpVersion::kIPv4) { |
| 406 | return addr_.v4 == other.addr_.v4; |
| 407 | } |
| 408 | return false; |
| 409 | } |
| 410 | |
| 411 | bool NetworkAddressRep::IsLessThan(const NetworkAddressRep& other) const { |
| 412 | if (version_ != other.version_) { |
no test coverage detected