]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#603,!322] Register MySQL backend for v6 in mysql_cb hooks library.
authorMarcin Siodelski <marcin@isc.org>
Tue, 14 May 2019 19:23:50 +0000 (21:23 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 14 May 2019 19:23:50 +0000 (21:23 +0200)
src/hooks/dhcp/mysql_cb/mysql_cb_callouts.cc

index 5a23969a8e5e349dc90f39be7dd073cc8b4d89a7..f1eac40b8ee20280a3776ddf2958197450057476 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,6 +11,7 @@
 #include <config.h>
 #include <hooks/hooks.h>
 #include <mysql_cb_dhcp4.h>
+#include <mysql_cb_dhcp6.h>
 
 using namespace isc::hooks;
 
@@ -23,8 +24,9 @@ extern "C" {
 
 int load(LibraryHandle& /* handle */) {
 
-    // Register MySQL CB factory with CB Manager
+    // Register MySQL CB factories with CB Managers
     isc::dhcp::MySqlConfigBackendDHCPv4::registerBackendType();
+    isc::dhcp::MySqlConfigBackendDHCPv6::registerBackendType();
 
     return (0);
 }
@@ -34,8 +36,9 @@ int load(LibraryHandle& /* handle */) {
 /// @return 0 if deregistration was successful, 1 otherwise
 int unload() {
 
-    // Unregister the factory and remove MySQL backends
+    // Unregister the factories and remove MySQL backends
     isc::dhcp::MySqlConfigBackendDHCPv4::unregisterBackendType();
+    isc::dhcp::MySqlConfigBackendDHCPv6::unregisterBackendType();
     return (0);
 }