summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/cfg_hosts.cc
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2015-02-05 18:38:00 +0100
committerTomek Mrugalski <tomasz@isc.org>2015-02-06 11:44:15 +0100
commit8d73d3d8916ec6952c82dc5e80b1dea024002fe4 (patch)
tree774b76f0f6a94b0c0a90233624e8c2fbc1515a49 /src/lib/dhcpsrv/cfg_hosts.cc
parent[3677] Fix for two unit-tests disabled in #3563 (diff)
downloadkea-8d73d3d8916ec6952c82dc5e80b1dea024002fe4.tar.xz
kea-8d73d3d8916ec6952c82dc5e80b1dea024002fe4.zip
[master] Compilation fix for NetBSD6 after #3563
- See 3643, comment 5 for explanation
Diffstat (limited to 'src/lib/dhcpsrv/cfg_hosts.cc')
-rw-r--r--src/lib/dhcpsrv/cfg_hosts.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/cfg_hosts.cc b/src/lib/dhcpsrv/cfg_hosts.cc
index 583600c9f5..4d90f38fcf 100644
--- a/src/lib/dhcpsrv/cfg_hosts.cc
+++ b/src/lib/dhcpsrv/cfg_hosts.cc
@@ -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