From: Razvan Becheriu Date: Fri, 6 Nov 2020 12:39:17 +0000 (+0200) Subject: [#1375] fixed compilation X-Git-Tag: Kea-1.9.3~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff991eed99f78060318924f2c2fd5889895e838c;p=thirdparty%2Fkea.git [#1375] fixed compilation --- diff --git a/src/bin/dhcp4/ctrl_dhcp4_srv.cc b/src/bin/dhcp4/ctrl_dhcp4_srv.cc index 970ccbe07e..de36fb4596 100644 --- a/src/bin/dhcp4/ctrl_dhcp4_srv.cc +++ b/src/bin/dhcp4/ctrl_dhcp4_srv.cc @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/src/bin/dhcp6/ctrl_dhcp6_srv.cc b/src/bin/dhcp6/ctrl_dhcp6_srv.cc index d79e713835..01334772e5 100644 --- a/src/bin/dhcp6/ctrl_dhcp6_srv.cc +++ b/src/bin/dhcp6/ctrl_dhcp6_srv.cc @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/src/lib/dhcpsrv/host_mgr.h b/src/lib/dhcpsrv/host_mgr.h index 29fbc8c6aa..2c8df47ff8 100644 --- a/src/lib/dhcpsrv/host_mgr.h +++ b/src/lib/dhcpsrv/host_mgr.h @@ -619,6 +619,18 @@ public: return (ip_reservations_unique_); } + /// @brief Sets IO service to be used by the Host Manager. + /// + /// @param IOService object, used for all ASIO operations. + static void setIOService(const isc::asiolink::IOServicePtr& io_service) { + io_service_ = io_service; + } + + /// @brief Returns pointer to the IO service. + static isc::asiolink::IOServicePtr& getIOService() { + return (io_service_); + } + protected: /// @brief The negative caching flag. /// @@ -652,18 +664,6 @@ protected: const uint8_t* identifier_begin, const size_t identifier_len) const; - /// @brief Sets IO service to be used by the Host Manager. - /// - /// @param IOService object, used for all ASIO operations. - static void setIOService(const isc::asiolink::IOServicePtr& io_service) { - io_service_ = io_service; - } - - /// @brief Returns pointer to the IO service. - static isc::asiolink::IOServicePtr& getIOService() { - return (io_service_); - } - private: /// @brief Indicates if backends are running in the mode in which IP