// No pool available. There are no pools or client classes do
// not match.
- return (IOAddress::IPV4_ZERO_ADDRESS());
+ return (pool_type_ == Lease::TYPE_V4 ? IOAddress::IPV4_ZERO_ADDRESS() : IOAddress::IPV6_ZERO_ADDRESS());
}
IOAddress
// can't offer any address to the client.
cc_.clear();
IOAddress candidate = alloc.pickAddress(cc_, duid_, IOAddress("0.0.0.0"));
- EXPECT_TRUE(candidate.isV4Zero());
+ EXPECT_TRUE(candidate.isV6Zero());
}
// Test allocating delegated prefixes when a subnet has a single pool.