]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1375] fixed compilation
authorRazvan Becheriu <razvan@isc.org>
Fri, 6 Nov 2020 12:39:17 +0000 (14:39 +0200)
committerRazvan Becheriu <razvan@isc.org>
Wed, 9 Dec 2020 17:12:46 +0000 (19:12 +0200)
src/bin/dhcp4/ctrl_dhcp4_srv.cc
src/bin/dhcp6/ctrl_dhcp6_srv.cc
src/lib/dhcpsrv/host_mgr.h

index 970ccbe07ee312d1206122c2c0e1670922c7c55c..de36fb4596d946380797bfda5a7d347e21b183f1 100644 (file)
@@ -20,6 +20,7 @@
 #include <dhcpsrv/cfg_multi_threading.h>
 #include <dhcpsrv/cfgmgr.h>
 #include <dhcpsrv/db_type.h>
+#include <dhcpsrv/host_mgr.h>
 #include <hooks/hooks.h>
 #include <hooks/hooks_manager.h>
 #include <stats/stats_mgr.h>
index d79e713835b429b824f7ce9d51c9faf22d7510d6..01334772e533480761d849af4fc7ab5651d4c9c0 100644 (file)
@@ -20,6 +20,7 @@
 #include <dhcpsrv/cfg_multi_threading.h>
 #include <dhcpsrv/cfgmgr.h>
 #include <dhcpsrv/db_type.h>
+#include <dhcpsrv/host_mgr.h>
 #include <hooks/hooks.h>
 #include <hooks/hooks_manager.h>
 #include <stats/stats_mgr.h>
index 29fbc8c6aa81c827a693d7b813688bca0e9c7cbb..2c8df47ff88ec226d6c0537d2f542041d7cf8cd8 100644 (file)
@@ -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