From e3c0b7e0890ce2f15c99d276d8b32b1687a7325b Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Thu, 5 Feb 2015 18:38:00 +0100 Subject: [PATCH] [master] Compilation fix for NetBSD6 after #3563 - See 3643, comment 5 for explanation --- src/lib/dhcpsrv/cfg_hosts.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2