]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Compilation fix for NetBSD6 after #3563
authorTomek Mrugalski <tomasz@isc.org>
Thu, 5 Feb 2015 17:38:00 +0000 (18:38 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 16 Feb 2015 17:35:49 +0000 (18:35 +0100)
 - See 3643, comment 5 for explanation

src/lib/dhcpsrv/cfg_hosts.cc

index 583600c9f547302f64b74c7927a597786e480ca7..4d90f38fcf9a3e1bb40790eabbbdf49992cf227b 100644 (file)
@@ -215,7 +215,8 @@ CfgHosts::getAllInternal6(const SubnetID& subnet_id,
 
     // Let's get all reservations that match subnet_id, address.
     const HostContainer6Index1& idx = hosts6_.get<1>();
-    HostContainer6Index1Range r = idx.equal_range(boost::make_tuple(subnet_id, address));
+    HostContainer6Index1Range r = make_pair(idx.lower_bound(boost::make_tuple(subnet_id, address)),
+                                            idx.upper_bound(boost::make_tuple(subnet_id, address)));
 
     // For each IPv6 reservation, add the host to the results list. Fortunately,
     // in all sane cases, there will be only one such host. (Each host can have