summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp6/dhcp6_srv.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2020-02-06 11:18:53 +0100
committerRazvan Becheriu <razvan@isc.org>2020-02-21 16:41:31 +0100
commite823054697ba12de2dc2ba9cff392bc96367bcad (patch)
tree7ba01c16b224c68b2682a2cd1ee51516dbb3cf3c /src/bin/dhcp6/dhcp6_srv.cc
parent[#892] handle parking (diff)
downloadkea-e823054697ba12de2dc2ba9cff392bc96367bcad.tar.xz
kea-e823054697ba12de2dc2ba9cff392bc96367bcad.zip
[#892] fixed compilation
Diffstat (limited to 'src/bin/dhcp6/dhcp6_srv.cc')
-rw-r--r--src/bin/dhcp6/dhcp6_srv.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc
index b657c4ed1e..4a7c2b6631 100644
--- a/src/bin/dhcp6/dhcp6_srv.cc
+++ b/src/bin/dhcp6/dhcp6_srv.cc
@@ -980,9 +980,10 @@ Dhcpv6Srv::processPacket(Pkt6Ptr& query, Pkt6Ptr& rsp) {
HooksManager::park("leases6_committed", query,
[this, callout_handle, query, rsp]() mutable {
if (Dhcpv6Srv::threadCount()) {
- ThreadPool::WorkItemCallBack call_back =
- std::bind(&Dhcpv6Srv::processPacketSendResponseNoThrow,
- this, callout_handle, query, rsp);
+ typedef function<void()> CallBack;
+ boost::shared_ptr<CallBack> call_back =
+ boost::make_shared<CallBack>(std::bind(&Dhcpv6Srv::sendResponseNoThrow,
+ this, callout_handle, query, rsp));
pkt_thread_pool_.add(call_back);
} else {
processPacketPktSend(callout_handle, query, rsp);
@@ -1001,8 +1002,8 @@ Dhcpv6Srv::processPacket(Pkt6Ptr& query, Pkt6Ptr& rsp) {
}
void
-Dhcpv6Srv::processPacketSendResponseNoThrow(hooks::CalloutHandlePtr& callout_handle,
- Pkt6Ptr& query, Pkt6Ptr& rsp) {
+Dhcpv6Srv::sendResponseNoThrow(hooks::CalloutHandlePtr& callout_handle,
+ Pkt6Ptr& query, Pkt6Ptr& rsp) {
try {
processPacketPktSend(callout_handle, query, rsp);
processPacketBufferSend(callout_handle, rsp);