return (collection);
}
-Lease4Collection
-Memfile_LeaseMgr::getLeases4(const std::string& hostname) const {
- LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL, DHCPSRV_MEMFILE_GET_HOSTNAME4)
- .arg(hostname);
-
- Lease4Collection collection;
+void
+Memfile_LeaseMgr::getLeases4Internal(const std::string& hostname,
+ Lease4Collection& collection) const {
const Lease4StorageHostnameIndex& idx = storage4_.get<HostnameIndexTag>();
std::pair<Lease4StorageHostnameIndex::const_iterator,
Lease4StorageHostnameIndex::const_iterator> l =
for (auto lease = l.first; lease != l.second; ++lease) {
collection.push_back(Lease4Ptr(new Lease4(**lease)));
}
-
- return (collection);
}
Lease4Collection
return (collection);
}
-Lease6Collection
-Memfile_LeaseMgr::getLeases6(const std::string& hostname) const {
- LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL, DHCPSRV_MEMFILE_GET_HOSTNAME6)
- .arg(hostname);
-
- Lease6Collection collection;
+void
+Memfile_LeaseMgr::getLeases6Internal(const std::string& hostname,
+ Lease6Collection& collection) const {
const Lease6StorageHostnameIndex& idx = storage6_.get<HostnameIndexTag>();
std::pair<Lease6StorageHostnameIndex::const_iterator,
Lease6StorageHostnameIndex::const_iterator> l =
for (auto lease = l.first; lease != l.second; ++lease) {
collection.push_back(Lease6Ptr(new Lease6(**lease)));
}
-
- return (collection);
}
Lease6Collection