]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4112_rebase] Minor change after review
authorTomek Mrugalski <tomasz@isc.org>
Tue, 10 May 2016 12:39:57 +0000 (14:39 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 10 May 2016 12:39:57 +0000 (14:39 +0200)
 - check for address being :: updated

src/lib/dhcpsrv/cfg_subnets4.cc

index c51238ec97235af28e1a46f3441ba021f4863ccb..210a0ac3b138bbf2f3a0ee0f14200638e7fdeade 100644 (file)
@@ -45,7 +45,7 @@ CfgSubnets4::selectSubnet4o6(const SubnetSelector& selector) const {
 
         // First match criteria: check if we have a prefix/len defined.
         std::pair<asiolink::IOAddress, uint8_t> pref = cfg4o6.getSubnet4o6();
-        if (pref.first != IOAddress::IPV6_ZERO_ADDRESS()) {
+        if (!IOAddress::isV6Zero(pref.first)) {
 
             // Let's check if the IPv6 address is in range
             IOAddress first = firstAddrInPrefix(pref.first, pref.second);