| 1175 | } |
| 1176 | |
| 1177 | bool |
| 1178 | IPRange::operator==(self_type const &that) const { |
| 1179 | if (_family != that._family) { |
| 1180 | return false; |
| 1181 | } |
| 1182 | if (this->is_ip4()) { |
| 1183 | return _range._ip4 == that._range._ip4; |
| 1184 | } |
| 1185 | if (this->is_ip6()) { |
| 1186 | return _range._ip6 == that._range._ip6; |
| 1187 | } |
| 1188 | return true; |
| 1189 | } |
| 1190 | |
| 1191 | IPMask |
| 1192 | IP6Range::network_mask() const { |