]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4042] Removed hook paths from doc
authorFrancis Dupont <fdupont@isc.org>
Sat, 30 Aug 2025 22:53:52 +0000 (00:53 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 18 Sep 2025 11:36:00 +0000 (13:36 +0200)
62 files changed:
doc/devel/congestion-handling.dox
doc/examples/agent/rbac.json
doc/examples/agent/simple.json
doc/examples/ddns/all-keys-netconf.json
doc/examples/ddns/all-keys.json
doc/examples/ddns/gss-tsig.json
doc/examples/ddns/sample1.json
doc/examples/kea4/all-keys-netconf.json
doc/examples/kea4/all-keys.json
doc/examples/kea4/backends.json
doc/examples/kea4/config-backend.json
doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
doc/examples/kea4/ha-load-balancing-server2-mt.json
doc/examples/kea4/hooks-radius.json
doc/examples/kea4/hooks.json
doc/examples/kea4/mysql-reservations.json
doc/examples/kea4/pgsql-reservations.json
doc/examples/kea6/all-keys-netconf.json
doc/examples/kea6/all-keys.json
doc/examples/kea6/backends.json
doc/examples/kea6/config-backend.json
doc/examples/kea6/ha-hot-standby-server1-with-tls.json
doc/examples/kea6/ha-hot-standby-server2.json
doc/examples/kea6/hooks.json
doc/examples/kea6/mysql-reservations.json
doc/examples/kea6/pgsql-reservations.json
doc/examples/netconf/simple-dhcp4.json
doc/examples/netconf/simple-dhcp6.json
doc/examples/template-ha-mt-tls/kea-dhcp4-1.conf
doc/examples/template-ha-mt-tls/kea-dhcp4-2.conf
doc/examples/template-power-user-home/kea-dhcp4-1.conf
doc/examples/template-power-user-home/kea-dhcp4-2.conf
doc/sphinx/arm/agent.rst
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst
doc/sphinx/arm/ext-gss-tsig.rst
doc/sphinx/arm/ext-netconf.rst
doc/sphinx/arm/ext-radius.rst
doc/sphinx/arm/hooks-bootp.rst
doc/sphinx/arm/hooks-ddns-tuning.rst
doc/sphinx/arm/hooks-flex-id.rst
doc/sphinx/arm/hooks-flex-option.rst
doc/sphinx/arm/hooks-ha.rst
doc/sphinx/arm/hooks-host-cache.rst
doc/sphinx/arm/hooks-host-cmds.rst
doc/sphinx/arm/hooks-lease-cmds.rst
doc/sphinx/arm/hooks-lease-query.rst
doc/sphinx/arm/hooks-legal-log.rst
doc/sphinx/arm/hooks-limits.rst
doc/sphinx/arm/hooks-perfmon.rst
doc/sphinx/arm/hooks-ping-check.rst
doc/sphinx/arm/hooks-rbac.rst
doc/sphinx/arm/hooks-run-script.rst
doc/sphinx/arm/hooks-stat-cmds.rst
doc/sphinx/arm/hooks.rst
src/hooks/dhcp/bootp/bootp.dox
src/hooks/dhcp/flex_id/libdhcp_flex_id.dox
src/hooks/dhcp/flex_option/flex_option.dox
src/hooks/dhcp/forensic_log/libdhcp_legal_log.dox
src/hooks/dhcp/run_script/run_script.dox
src/lib/hooks/hooks_user.dox
src/lib/hooks/library_handle.h

index 83079e8a4663e8aa92c44a9aeae6bed9da1cb8d9..1a963fd0cb38bd5ee3ee742d421bae7084c8632a 100644 (file)
@@ -292,7 +292,7 @@ to look something like this:
     "hooks-libraries": [
     {
         # Loading your hook library!
-        "library": "/somepath/lib/libyour_packet_queue.so"
+        "library": "libyour_packet_queue.so"
     }
 
     # any other hook libs
@@ -430,7 +430,7 @@ Server configuration for kea-dhcp6:
     "hooks-libraries": [
     {
         # Loading your hook library!
-        "library": "/somepath/lib/libyour_packet_queue.so"
+        "library": "libyour_packet_queue.so"
     }
 
     # any other hook libs
index 575cfd90e5fc7b5d44be300f2d0056e5f8c84361..9db38796b0cfc627253aedc3c17a4f7e944a8dad 100644 (file)
@@ -32,7 +32,7 @@
         // Add hooks here.
         "hooks-libraries": [
         {
-            "library": "/opt/lib/libdhcp_rbac.so",
+            "library": "libdhcp_rbac.so",
             "parameters": {
                 // This section configures the RBAC hook library.
                 // Mandatory parameters.
index 62596c45ca5b6526c615dc283f4ec43e2e7b9c5f..e96bc54f953bad53c14308b716047c2a15d8cb4c 100644 (file)
             // Hook libraries list may contain more than one library.
             {
                 // The only necessary parameter is the library filename.
-                "library": "/opt/local/control-agent-commands.so",
+                "library": "control-agent-commands.so",
 
                 // Some libraries may support parameters. Make sure you
                 // type this section carefully, as the CA does not validate
index be481f6851e50f7b1a885485e34431c07b7f0e7a..ae910fb84bd8666dcda64bcb57b770f0d140b539 100644 (file)
@@ -52,7 +52,7 @@
     "hooks-libraries": [
         {
             // Location of the hook library to be loaded.
-            "library": "/opt/local/ddns-server-commands.so",
+            "library": "ddns-server-commands.so",
 
             // Hook library-specific configuration parameters.
             "parameters": { }
index 56d0a227edb44fd92ee48204a411baa14122df4e..a2dd686e317e794359c50aa7692a496d2d4166e4 100644 (file)
     "hooks-libraries": [
         {
             // Location of the hook library to be loaded.
-            "library": "/opt/local/ddns-server-commands.so",
+            "library": "ddns-server-commands.so",
 
             // Hook library-specific configuration parameters.
             "parameters": { }
index 0af13519c32882c2f5e9ef71629ab0c6a3ac7965..0e3623ca0ec0e6634c111b27570bf0d623011eaf 100644 (file)
@@ -61,7 +61,7 @@
     // The GSS-TSIG hook is loaded and its configuration is specified here.
     "hooks-libraries": [
     {
-        "library": "/opt/lib/libddns_gss_tsig.so",
+        "library": "libddns_gss_tsig.so",
         "parameters": {
             // This section governs the GSS-TSIG integration. Each server
             // mentioned in forward-ddns and/or reverse-ddns needs to have
index 3766700440a490f2af5c37e7c71c685f25c1b88b..5ed91c09b3b4f604f68f9da0343d5126dc79fea6 100644 (file)
@@ -42,7 +42,7 @@
         // Hook libraries list may contain more than one library.
         {
             // The only necessary parameter is the library filename.
-            "library": "/opt/local/ddns-server-commands.so",
+            "library": "ddns-server-commands.so",
 
             // Some libraries may support parameters. Make sure you
             // type this section carefully, as the CA does not validate
index e350af1bd2d0cd6d17d385b6ce57de791fc6aa16..a82ab13c969382f994846dc4592940fa63d766d1 100644 (file)
         "hooks-libraries": [
             {
                 // Location of the hook library to be loaded.
-                "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+                "library": "libdhcp_lease_cmds.so",
 
                 // Hook library-specific configuration parameters.
                 "parameters": { }
             },
             {
                 // The MySQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+                "library": "libdhcp_mysql.so"
             },
             {
                 // The PostgreSQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+                "library": "libdhcp_pgsql.so"
             }
         ],
 
index 89465c33e1109c6195718ffa395d0d0b911982af..82f633426d9565dc1fce5e08c53222af6e8e17f8 100644 (file)
         "hooks-libraries": [
             {
                 // Location of the hook library to be loaded.
-                "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+                "library": "libdhcp_lease_cmds.so",
 
                 // Hook library-specific configuration parameters.
                 "parameters": { }
             },
             {
                 // The MySQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+                "library": "libdhcp_mysql.so"
             },
             {
                 // The PostgreSQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+                "library": "libdhcp_pgsql.so"
             }
         ],
 
index 5d37ca1c56e439b7e75b200202cc282625742418..a758548e0e92541dbeeef1239fd516b0cc099ff2 100644 (file)
@@ -50,7 +50,7 @@
 // Specify the lease backend hook library location.
 //  {
 //      // the MySQL lease backend hook library required for lease storage.
-//      "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+//      "library": "libdhcp_mysql.so"
 //  },
 
 // 3. PostgreSQL backend. Leases will be stored in PostgreSQL database. Make
@@ -78,7 +78,7 @@
 // Specify the lease backend hook library location.
 //  {
 //      // the PostgreSQL lease backend hook library required for lease storage.
-//      "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+//      "library": "libdhcp_pgsql.so"
 //  },
 
 // Addresses will be assigned with a lifetime of 4000 seconds.
index 0bcfba91b9e505d41232b9bbc9d0f2e32b5deea4..5c04180101890ecf55a32952755f57563f9ec9d5 100644 (file)
         // The libdhcp_mysql.so is required to use MySQL Configuration
         // Backend.
         {
-            "library": "/usr/local/lib/kea/hooks/libdhcp_mysql.so"
+            "library": "libdhcp_mysql.so"
         }
         // If using PostgreSQL Configuration Backend, the "libdhcp_pgsql.so" is
         // required.
         // {
-        //    "library": "/usr/local/lib/kea/hooks/libdhcp_pgsql.so"
+        //    "library": "libdhcp_pgsql.so"
         // }
         // The libdhcp_cb_cmds.so is optional. It allows for managing the
         // configuration in the database. If this library is not loaded,
         // the configuration can be managed directly using available
         // tools that work directly with the MySQL database.
         // ,{
-        //     "library": "/usr/local/lib/kea/hooks/libdhcp_cb_cmds.so"
+        //     "library": "libdhcp_cb_cmds.so"
         // }
     ],
 
index 2a89216268472038af266850ca5c1de0337e021d..9dcdca5610c75a34574066a004b0dce998eba867 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+            "library": "libdhcp_lease_cmds.so",
             "parameters": { }
         },
         {
             // The HA hook library should be loaded.
-            "library": "/opt/lib/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // High Availability configuration is specified for the HA hook library.
                 // Each server should have the same HA configuration, except for the
index 32643d8278b970af644a02680fa214dcc1f15b15..0dc65370b93672bbbf4b3c43e42eeff2899d27fc 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+            "library": "libdhcp_lease_cmds.so",
             "parameters": { }
         },
         {
             // The HA hook library should be loaded.
-            "library": "/opt/lib/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // High Availability configuration is specified for the HA hook library.
                 // Each server should have the same HA configuration, except for the
index 55704c21d93faf60149b0bbd6ba64724ec19acc5..01edfe00e7d04d577d4ac32bd72aa3c871039c5e 100644 (file)
   "hooks-libraries": [
      {
         // Load the flex-id hook library.
-        "library": "/usr/local/lib/kea/hooks/libdhcp_flex_id.so",
+        "library": "libdhcp_flex_id.so",
 
         "parameters": {
             // Take the ID from the AOP option.
          // Load the host cache hook library. It is needed by the RADIUS
          // library to keep the attributes from authorization to later user
          // for accounting.
-         "library": "/usr/local/lib/kea/hooks/libdhcp_host_cache.so"
+         "library": "libdhcp_host_cache.so"
      },
      {
          // Load the RADIUS hook library.
-         "library": "/usr/local/lib/kea/hooks/libdhcp_radius.so",
+         "library": "libdhcp_radius.so",
 
          "parameters": {
              // If do not use RFC 4361
index 3bdf86ecdb28a2d4ad7d5308e082c29632de1689..383b8c858c8f46902950df523d91ff974fb8b995 100644 (file)
 
   "hooks-libraries": [
      {
-        "library": "/opt/lib/security.so"
+        "library": "security.so"
      },
      {
-         "library": "/opt/lib/charging.so",
+         "library": "charging.so",
          "parameters": {
              "path": "/var/log/kea",
              "base-name": "kea-forensic6"
index 26d9eee02742cc723d6fb04e84a546b207238a8d..e3a9a248950908da53c2e75b146ac64ef63606a9 100644 (file)
@@ -75,7 +75,7 @@
   "hooks-libraries": [
     {
         // the MySQL host backend hook library required for host storage.
-        "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+        "library": "libdhcp_mysql.so"
     }
   ],
 
index 94b190419267ed78210ec18791d3abeb0da4d8de..144a8382954c6ee05615505c6c95908dfa2fafc1 100644 (file)
@@ -73,7 +73,7 @@
   "hooks-libraries": [
     {
         // the PostgreSQL host backend hook library required for host storage.
-        "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+        "library": "libdhcp_pgsql.so"
     }
   ],
 
index e070989d04af4297e782b013145b446173fcde50..9d7e8f1602f1635c352ab6cb3cfd525fe06f3fb3 100644 (file)
         "hooks-libraries": [
             {
                 // Location of the hook library to be loaded.
-                "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+                "library": "libdhcp_lease_cmds.so",
 
                 // Hook library-specific configuration parameters.
                 "parameters": { }
             },
             {
                 // The MySQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+                "library": "libdhcp_mysql.so"
             },
             {
                 // The PostgreSQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+                "library": "libdhcp_pgsql.so"
             }
         ],
 
index 4b8d344650ef02dc2022f7467b731d566c303c02..edf1cea2f97df1b93281034881f19ab86cc36be3 100644 (file)
         "hooks-libraries": [
             {
                 // Location of the hook library to be loaded.
-                "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+                "library": "libdhcp_lease_cmds.so",
 
                 // Hook library-specific configuration parameters.
                 "parameters": { }
             },
             {
                 // The MySQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+                "library": "libdhcp_mysql.so"
             },
             {
                 // The PostgreSQL host backend hook library required for host storage.
-                "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+                "library": "libdhcp_pgsql.so"
             }
         ],
 
index c30200f86ecaa63748635b4cac5b01b6b09767cf..54ba753a5340413070394f9756f4bb23d322517c 100644 (file)
@@ -50,7 +50,7 @@
 // Specify the lease backend hook library location.
 //  {
 //      // the MySQL lease backend hook library required for lease storage.
-//      "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+//      "library": "libdhcp_mysql.so"
 //  },
 
 // 3. PostgreSQL backend. Leases will be stored in PostgreSQL database. Make
@@ -78,7 +78,7 @@
 // Specify the lease backend hook library location.
 //  {
 //      // the PostgreSQL lease backend hook library required for lease storage.
-//      "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+//      "library": "libdhcp_pgsql.so"
 //  },
 
 // Addresses will be assigned with preferred and valid lifetimes
index d0a1f8a97b6a2da222bd727098ad56bdb6207501..bf67dcb445344182bf05b657b2d45da9a9662335 100644 (file)
         // The libdhcp_mysql.so is required to use MySQL Configuration
         // Backend.
         {
-            "library": "/usr/local/lib/kea/hooks/libdhcp_mysql.so"
+            "library": "libdhcp_mysql.so"
         }
         // If using PostgreSQL Configuration Backend, the "libdhcp_pgsql.so" is
         // required.
         // {
-        //    "library": "/usr/local/lib/kea/hooks/libdhcp_pgsql.so"
+        //    "library": "libdhcp_pgsql.so"
         // }
         // The libdhcp_cb_cmds.so is optional. It allows for managing the
         // configuration in the database. If this library is not loaded,
         // the configuration can be managed directly using available
         // tools that work directly with the MySQL database.
         // ,{
-        //     "library": "/usr/local/lib/kea/hooks/libdhcp_cb_cmds.so"
+        //     "library": "libdhcp_cb_cmds.so"
         // }
     ],
 
index 19d2b5e5b50441fd2ad45488f628b72814d409f0..e2e92a4322e69214ddcc3c94cc30bb0030e0eec2 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+            "library": "libdhcp_lease_cmds.so",
             "parameters": { }
         },
         {
             // The HA hook library should be loaded.
-            "library": "/opt/lib/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // High Availability configuration is specified for the HA hook library.
                 // Each server should have the same HA configuration, except for the
index 4c1cf1fff41819b2b26d1eada38067af778712a8..38c7f1d1d77d3703eec94101f93e449f469b5cf7 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
+            "library": "libdhcp_lease_cmds.so",
             "parameters": { }
         },
         {
             // The HA hook library should be loaded.
-            "library": "/opt/lib/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // High Availability configuration is specified for the HA hook library.
                 // Each server should have the same HA configuration, except for the
index b683c6edb5dd7584a76a4dd118cbbaa20c6f2933..be197c9ba94a5be553513526726f56213bee1c1d 100644 (file)
 
   "hooks-libraries": [
      {
-        "library": "/opt/lib/security.so"
+        "library": "security.so"
      },
      {
-        "library": "/opt/lib/charging.so",
+        "library": "charging.so",
         "parameters": {
              "path": "/var/log/kea",
              "base-name": "kea-forensic6"
index b83b9c003c0052fe7d81b518a5d65633a7d5c7a3..8ee9adde8ddc1bd0ad3dfd8a0806850c91a39acb 100644 (file)
@@ -63,7 +63,7 @@
   "hooks-libraries": [
     {
         // the MySQL host backend hook library required for host storage.
-        "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+        "library": "libdhcp_mysql.so"
     }
   ],
 
index d2987caeeb90c0e311ea22efc83be0e3280d0054..422118b484cc94ceb659a683b8c895650ead3fa2 100644 (file)
@@ -60,7 +60,7 @@
   "hooks-libraries": [
     {
         // the PostgreSQL host backend hook library required for host storage.
-        "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+        "library": "libdhcp_pgsql.so"
     }
   ],
 
index 6847e2a9f3e8ef3e19ddb6a8db03495375d7a5b9..1e5665bfece012685074794576a08f5288c9e3a1 100644 (file)
@@ -75,7 +75,7 @@
         //    // Hook libraries list may contain more than one library.
         //    {
         //        // The only necessary parameter is the library filename.
-        //        "library": "/opt/local/netconf-commands.so",
+        //        "library": "netconf-commands.so",
 
         //        // Some libraries may support parameters. Make sure you
         //        // type this section carefully, as the CA does not validate
index 0b74926666e612529ab6a06dad7ee955e3bafbb2..0592379b6eabf820c19bb0e6e8f10c2c1108b9b7 100644 (file)
@@ -76,7 +76,7 @@
         //    // Hook libraries list may contain more than one library.
         //    {
         //        // The only necessary parameter is the library filename.
-        //        "library": "/opt/local/netconf-commands.so",
+        //        "library": "netconf-commands.so",
 
         //        // Some libraries may support parameters. Make sure you
         //        // type this section carefully, as the CA does not validate
index add138055a1dc0d2eb7bf109037acf4cfb2d7b43..99b3f7d10f40116c47e62d590920cf314a8c2531 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"
+            "library": "libdhcp_lease_cmds.so"
         },
 
         {
             // The HA hook library should be loaded.
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // Each server should have the same HA configuration, except for the
                 // "this-server-name" parameter.
index bce555f56cadb8ea6774276cc26871405c6adda0..8a3a654f0e95798956dc3ec364802662dcdf9e02 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"
+            "library": "libdhcp_lease_cmds.so"
         },
 
         {
             // The HA hook library should be loaded.
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // Each server should have the same HA configuration, except for the
                 // "this-server-name" parameter.
index 810b182345bf19c099f9b519f2c47498aa41c966..d3720b22f5e84e359251b0e3e53e110cefadfe18 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"
+            "library": "libdhcp_lease_cmds.so"
         },
 
         {
             // The HA hook library should be loaded.
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // Each server should have the same HA configuration, except for the
                 // "this-server-name" parameter.
index 9928e8a648feac458d9454d81e3a4d2e1d97c995..1c2c5a2186d88b9059c6b229022c86c92909b53e 100644 (file)
         // deliver lease updates to the server as well as synchronize the
         // lease database after failure.
         {
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"
+            "library": "libdhcp_lease_cmds.so"
         },
 
         {
             // The HA hook library should be loaded.
-            "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
                 // Each server should have the same HA configuration, except for the
                 // "this-server-name" parameter.
index 6cf7b30330d132159462e68571a159c15def9512..c4fff8a788aa12b5fa567762daf77986cf836c09 100644 (file)
@@ -95,7 +95,7 @@ The following example demonstrates the basic CA configuration.
 
            "hooks-libraries": [
            {
-               "library": "/opt/local/custom_hooks_example.so",
+               "library": "custom_hooks_example.so",
                "parameters": {
                    "param1": "foo"
                }
index f4da752fce8bdc65b477bef00e8697fc0f202a6a..28701b7c7c497d145548c727266b10063cc1c9e7 100644 (file)
@@ -686,7 +686,7 @@ Specify the lease backend hook library location:
    "Dhcp4": { "hooks-libraries": [
        {
            // the MySQL lease backend hook library required for lease storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+           "library": "libdhcp_mysql.so"
        }, ... ], ... }
 
 Since Kea.2.7.4, the libdhcp_pgsql.so hook library must be loaded in order to
@@ -698,7 +698,7 @@ Specify the lease backend hook library location.
    "Dhcp4": { "hooks-libraries": [
        {
            // the PostgreSQL lease backend hook library required for lease storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+           "library": "libdhcp_pgsql.so"
        }, ... ], ... }
 
 
@@ -943,7 +943,7 @@ Specify the lease backend hook library location:
    "Dhcp4": { "hooks-libraries": [
        {
            // the MySQL host backend hook library required for host storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+           "library": "libdhcp_mysql.so"
        }, ... ], ... }
 
 Since Kea.2.7.4, the libdhcp_pgsql.so hook library must be loaded in order to
@@ -955,7 +955,7 @@ Specify the lease backend hook library location.
    "Dhcp4": { "hooks-libraries": [
        {
            // the PostgreSQL host backend hook library required for host storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+           "library": "libdhcp_pgsql.so"
        }, ... ], ... }
 
 
@@ -8624,10 +8624,10 @@ database:
            },
            "hooks-libraries": [
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_mysql.so"
+                   "library": "libdhcp_mysql.so"
                },
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_cb_cmds.so"
+                   "library": "libdhcp_cb_cmds.so"
                }
            ]
        }
@@ -8655,10 +8655,10 @@ The following snippet illustrates the use of a PostgreSQL database:
            },
            "hooks-libraries": [
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_pgsql.so"
+                   "library": "libdhcp_pgsql.so"
                },
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_cb_cmds.so"
+                   "library": "libdhcp_cb_cmds.so"
                }
            ]
        }
index 1430581864ada47bec4cd620236e0d9a79f05f5c..8372a0445d970b72daf11c38b86717f7ae628935 100644 (file)
@@ -642,7 +642,7 @@ Specify the lease backend hook library location:
    "Dhcp6": { "hooks-libraries": [
        {
            // the MySQL lease backend hook library required for lease storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+           "library": "libdhcp_mysql.so"
        }, ... ], ... }
 
 Since Kea.2.7.4, the libdhcp_pgsql.so hook library must be loaded in order to
@@ -654,7 +654,7 @@ Specify the lease backend hook library location.
    "Dhcp6": { "hooks-libraries": [
        {
            // the PostgreSQL lease backend hook library required for lease storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+           "library": "libdhcp_pgsql.so"
        }, ... ], ... }
 
 
@@ -899,7 +899,7 @@ Specify the lease backend hook library location:
    "Dhcp6": { "hooks-libraries": [
        {
            // the MySQL host backend hook library required for host storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_mysql.so"
+           "library": "libdhcp_mysql.so"
        }, ... ], ... }
 
 Since Kea.2.7.4, the libdhcp_pgsql.so hook library must be loaded in order to
@@ -911,7 +911,7 @@ Specify the lease backend hook library location.
    "Dhcp6": { "hooks-libraries": [
        {
            // the PostgreSQL host backend hook library required for host storage.
-           "library": "/opt/lib/kea/hooks/libdhcp_pgsql.so"
+           "library": "libdhcp_pgsql.so"
        }, ... ], ... }
 
 
@@ -8467,10 +8467,10 @@ database:
            },
            "hooks-libraries": [
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_mysql.so"
+                   "library": "libdhcp_mysql.so"
                },
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_cb_cmds.so"
+                   "library": "libdhcp_cb_cmds.so"
                }
            ]
        }
@@ -8498,10 +8498,10 @@ The following snippet illustrates the use of a PostgreSQL database:
            },
            "hooks-libraries": [
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_pgsql.so"
+                   "library": "libdhcp_pgsql.so"
                },
                {
-                   "library": "/usr/local/lib/kea/hooks/libdhcp_cb_cmds.so"
+                   "library": "libdhcp_cb_cmds.so"
                }
            ]
        }
index 12a38e333ef3dacdf30ec525af3d99b6f5d23428..163e3efda02806d40543c3ea3de89189e5c77450 100644 (file)
@@ -516,7 +516,7 @@ An excerpt from a D2 server configuration is provided below; more examples are a
         // The GSS-TSIG hook is loaded and its configuration is specified here.
         "hooks-libraries": [
         {
-            "library": "/opt/lib/libddns_gss_tsig.so",
+            "library": "libddns_gss_tsig.so",
             "parameters": {
                 // This section governs the GSS-TSIG integration. Each server
                 // mentioned in forward-ddns and/or reverse-ddns needs to have
index a1b5f29a69601e29cfe4893d7a2b91a1b0a21bdd..37e66d26dafc98d8044c5c54083e53fb1e8448d7 100644 (file)
@@ -582,7 +582,7 @@ Kea sources.
                // The hook libraries list may contain more than one library.
                {
                    // The only necessary parameter is the library filename.
-                   "library": "/opt/local/custom_hooks_example.so",
+                   "library": "custom_hooks_example.so",
 
                    // Some libraries may support parameters. Make sure you
                    // type this section carefully, as kea-netconf does not
index 4bf8178def6d666f5c4e76d3ded1801df564a8fc..1313b95fed7602fefbcacca8a7fb35eb54d7f020 100644 (file)
@@ -66,10 +66,10 @@ takes many parameters. For example, this configuration can be used:
           {
             // Note that the RADIUS access service requires host-cache for
             // proper operation, so this library is loaded as well.
-            "library": "/usr/local/lib/kea/hooks/libdhcp_host_cache.so"
+            "library": "libdhcp_host_cache.so"
           },
           {
-            "library": "/usr/local/lib/kea/hooks/libdhcp_radius.so",
+            "library": "libdhcp_radius.so",
             "parameters": {
 
               // Specify where the dictionary is located.
index ee4f595cbd4143de85d1cb7f38452d2e0d9c516a..93bfcad3c193c29786a2ae7efc6c8e19d8f71ba1 100644 (file)
@@ -32,7 +32,7 @@ it takes no parameters.
 
     "Dhcp4": {
         "hooks-libraries": [
-            {   "library": "/usr/local/lib/libdhcp_bootp.so" },
+            {   "library": "libdhcp_bootp.so" },
             ...
         ]
     }
index af32a39a51e9e9775901dd26dbe4ad5f808928a2..23e01e713a32e5c50500300503fb1b706108fa72 100644 (file)
@@ -23,7 +23,7 @@ server's configuration:
     {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_ddns_tuning.so",
+                "library": "libdhcp_ddns_tuning.so",
                 "parameters": {
                     ...
                 }
@@ -47,7 +47,7 @@ expression is shown below:
     {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_ddns_tuning.so",
+                "library": "libdhcp_ddns_tuning.so",
                 "parameters": {
                     "hostname-expr": "'host-'+hexstring(pkt4.mac,'-')",
                     ...
@@ -67,7 +67,7 @@ the ``hostname-expr`` one would use to reverse this rule:
     {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_ddns_tuning.so",
+                "library": "libdhcp_ddns_tuning.so",
                 "parameters": {
                     "hostname-expr" : "ifelse(option[12].exists, option[host-name].text, option[81].text)"
                 }
index dad534ce5f7903f181f753fe902dbbbe3af888f9..222273f117f3f0cc0752b7f918c0b53731cdd50a 100644 (file)
@@ -48,7 +48,7 @@ and ``ignore-iaid``:
    "Dhcp6": {
        "hooks-libraries": [
            {
-               "library": "/path/libdhcp_flex_id.so",
+               "library": "libdhcp_flex_id.so",
                "parameters": {
                    "identifier-expression": "expression",
                    "replace-client-id": false,
@@ -96,7 +96,7 @@ can be achieved by using the following configuration:
        # add "flex-id" to reservation identifiers
        "hooks-libraries": [
            {
-               "library": "/path/libdhcp_flex_id.so",
+               "library": "libdhcp_flex_id.so",
                "parameters": {
                    "identifier-expression": "substring(relay6[0].option[18].hex,0,8)"
                }
@@ -145,7 +145,7 @@ for non-printable characters and do not require the use of the
        # add "flex-id" to reservation identifiers
        "hooks-libraries": [
            {
-               "library": "/path/libdhcp_flex_id.so",
+               "library": "libdhcp_flex_id.so",
                "parameters": {
                    "identifier-expression": "vendor[4491].option[1026].hex"
                }
@@ -198,7 +198,7 @@ The following is a stub configuration that enables this behavior:
    "Dhcp4": {
        "hooks-libraries": [
            {
-               "library": "/path/libdhcp_flex_id.so",
+               "library": "libdhcp_flex_id.so",
                "parameters": {
                    "identifier-expression": "expression",
                    "replace-client-id": true
index 1943a0d656a86d477412ee3a542bf5956fb7423b..06f3b7df496b361e7a38cd2b4cb2d307e5b3d3de 100644 (file)
@@ -52,7 +52,7 @@ expression.
     "Dhcp4": {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_flex_option.so",
+                "library": "libdhcp_flex_option.so",
                 "parameters": {
                     "options": [
                         {
@@ -81,7 +81,7 @@ mask in the response:
         "Dhcp4": {
             "hooks-libraries": [
                 {
-                    "library": "/usr/local/lib/libdhcp_flex_option.so",
+                    "library": "libdhcp_flex_option.so",
                     "parameters": {
                         "options": [
                             {
@@ -176,7 +176,7 @@ encapsulates the ``vendor-encapsulated-options`` space.
     "Dhcp4": {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_flex_option.so",
+                "library": "libdhcp_flex_option.so",
                 "parameters": {
                     "options": [
                         {
index e1ec8e5c6469a38c87ab945815c2d9fc3e8c206e..070f1be8bcf97ceff77120101ceb71fad115bbd4 100644 (file)
@@ -244,10 +244,10 @@ Server 1:
    {
      "Dhcp4": {
        "hooks-libraries": [{
-           "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+           "library": "libdhcp_lease_cmds.so",
            "parameters": { }
        }, {
-           "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+           "library": "libdhcp_ha.so",
            "parameters": {
                "high-availability": [{
                    "this-server-name": "server1",
@@ -291,10 +291,10 @@ Server 2:
    {
      "Dhcp4": {
        "hooks-libraries": [{
-           "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+           "library": "libdhcp_lease_cmds.so",
            "parameters": { }
        }, {
-           "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+           "library": "libdhcp_ha.so",
            "parameters": {
                "high-availability": [{
                    "this-server-name": "server2",
@@ -671,10 +671,10 @@ only difference that ``this-server-name`` should be set to "server2" and
 
    "Dhcp4": {
        "hooks-libraries": [{
-           "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+           "library": "libdhcp_lease_cmds.so",
            "parameters": { }
        }, {
-           "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+           "library": "libdhcp_ha.so",
            "parameters": {
                "high-availability": [{
                    "this-server-name": "server1",
@@ -1011,10 +1011,10 @@ library configuration has been removed from this example.
        }],
 
        "hooks-libraries": [{
-           "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+           "library": "libdhcp_lease_cmds.so",
            "parameters": { }
        }, {
-           "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+           "library": "libdhcp_ha.so",
            "parameters": {
                "high-availability": [{
                }]
@@ -1073,10 +1073,10 @@ The following is an example configuration of the primary server in a
 
    "Dhcp4": {
        "hooks-libraries": [{
-           "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+           "library": "libdhcp_lease_cmds.so",
            "parameters": { }
        }, {
-           "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+           "library": "libdhcp_ha.so",
            "parameters": {
                "high-availability": [{
                    "this-server-name": "server1",
@@ -1158,10 +1158,10 @@ The following is an example configuration file for the primary server in a
    {
      "Dhcp4": {
        "hooks-libraries": [{
-           "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+           "library": "libdhcp_lease_cmds.so",
            "parameters": { }
        }, {
-           "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+           "library": "libdhcp_ha.so",
            "parameters": {
                "high-availability": [{
                    "this-server-name": "server1",
@@ -1277,11 +1277,11 @@ default to ``true``:
    "Dhcp4": {
        "hooks-libraries": [
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+               "library": "libdhcp_lease_cmds.so",
                "parameters": { }
            },
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+               "library": "libdhcp_ha.so",
                "parameters": {
                    "high-availability": [ {
                        "this-server-name": "server1",
@@ -1370,11 +1370,11 @@ single page of leases from 60 seconds to 90 seconds:
    "Dhcp4": {
        "hooks-libraries": [
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+               "library": "libdhcp_lease_cmds.so",
                "parameters": { }
            },
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+               "library": "libdhcp_ha.so",
                "parameters": {
                    "high-availability": [ {
                        "this-server-name": "server1",
@@ -1449,11 +1449,11 @@ the HA state machine to pause in the ``waiting`` state after server startup.
    "Dhcp4": {
        "hooks-libraries": [
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+               "library": "libdhcp_lease_cmds.so",
                "parameters": { }
            },
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+               "library": "libdhcp_ha.so",
                "parameters": {
                    "high-availability": [ {
                        "this-server-name": "server1",
@@ -1504,11 +1504,11 @@ Consider the following configuration:
    "Dhcp4": {
        "hooks-libraries": [
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+               "library": "libdhcp_lease_cmds.so",
                "parameters": { }
            },
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+               "library": "libdhcp_ha.so",
                "parameters": {
                    "high-availability": [ {
                        "this-server-name": "server1",
@@ -1665,11 +1665,11 @@ as illustrated below:
    "Dhcp4": {
        "hooks-libraries": [
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+               "library": "libdhcp_lease_cmds.so",
                "parameters": { }
            },
            {
-               "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+               "library": "libdhcp_ha.so",
                "parameters": {
                    "high-availability": [ {
                        "this-server-name": "server1",
@@ -2446,11 +2446,11 @@ grouped into relationships as in the snippet below:
             },
             "hooks-libraries": [
                 {
-                    "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+                    "library": "libdhcp_lease_cmds.so",
                     "parameters": {}
                 },
                 {
-                    "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+                    "library": "libdhcp_ha.so",
                     "parameters": {
                         "high-availability": [
                             {
@@ -2550,11 +2550,11 @@ branch ``server3``:
             },
             "hooks-libraries": [
                 {
-                    "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so",
+                    "library": "libdhcp_lease_cmds.so",
                     "parameters": {}
                 },
                 {
-                    "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+                    "library": "libdhcp_ha.so",
                     "parameters": {
                         "high-availability": [
                             {
index 3a3cc18be1285b5d03ac0ab7fd1d0edcc672ef48..5a54137b14b150fb17affa5b040681c84cde8f1b 100644 (file)
@@ -41,7 +41,7 @@ any other hook library; for example, this configuration could be used:
 
      "hooks-libraries": [
      {
-         "library": "/usr/local/lib/kea/hooks/libdhcp_host_cache.so",
+         "library": "libdhcp_host_cache.so",
          "parameters": {
 
              # Tells Kea to never cache more than 1000 hosts.
index 1a2021c523c7d178d9169b7805263d5d4863fa33..e790e6da1460f2a09c31b4e0102a58f187ddded3 100644 (file)
@@ -83,7 +83,7 @@ servers.
    "Dhcp6": {
        "hooks-libraries": [
            {
-               "library": "/path/libdhcp_host_cmds.so"
+               "library": "libdhcp_host_cmds.so"
            },
            ...
        ]
index 4728c4c79b307ab95445794acfe843d45bda07c1..ac4b2ca8cc7af7850d8d9a072ef4de5726c7a19a 100644 (file)
@@ -122,7 +122,7 @@ servers.
    "Dhcp6": {
        "hooks-libraries": [
            {
-               "library": "/path/libdhcp_lease_cmds.so"
+               "library": "libdhcp_lease_cmds.so"
            },
            ...
        ]
@@ -1139,7 +1139,7 @@ lease:
 
     {
         "hooks-libraries": [{
-            "library": "/path/libdhcp_lease_cmds.so",
+            "library": "libdhcp_lease_cmds.so",
             "parameters": {
                 "binding-variables": [{
                     "name": "opt-222",
index 590e93858bc57c1b384acb5a67d8b6290da4af52..a080ed3a8976c4c3189e71424daadf60c3ff32c9 100644 (file)
@@ -142,7 +142,7 @@ addresses:
    {
     "hooks-libraries": [
         {
-            "library": "lib/kea/hooks/libdhcp_lease_query.so",
+            "library": "libdhcp_lease_query.so",
             "parameters": {
                 "requesters": [ "192.0.1.1", "10.0.0.2" ]
             }
@@ -327,7 +327,7 @@ addresses:
    {
     "hooks-libraries": [
         {
-            "library": "lib/kea/hooks/libdhcp_lease_query.so",
+            "library": "libdhcp_lease_query.so",
             "parameters": {
                 "requesters": [ "2001:db8:1::1", "2001:db8:2::1" ],
                 "prefix-lengths": [ 72 ]
@@ -542,7 +542,7 @@ For instance, for DHCPv4:
    {
      "hooks-libraries": [
          {
-             "library": "lib/kea/hooks/libdhcp_lease_query.so",
+             "library": "libdhcp_lease_query.so",
              "parameters": {
                  "requesters": [ "192.0.2.1", "192.0.2.2" ],
                  "advanced" : {
@@ -571,7 +571,7 @@ or for DHCPv6:
    {
      "hooks-libraries": [
          {
-             "library": "lib/kea/hooks/libdhcp_lease_query.so",
+             "library": "libdhcp_lease_query.so",
              "parameters": {
                  "requesters": [ "2001:db8:1::1", "2001:db8:2::1" ],
                  "advanced" : {
index 99143fe4346ff43e0ceac080ed8993b12b706a93..af5574dc6c8ef882977841088b47b5d52bf4527d 100644 (file)
@@ -96,7 +96,7 @@ by the ``--prefix`` meson setup option which defaults to
         "Dhcp4": {
             "hooks-libraries": [
                 {
-                    "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
+                    "library": "libdhcp_legal_log.so",
                     "parameters": {
                         "path": "/var/log/kea",
                         "base-name": "kea-forensic4"
@@ -114,7 +114,7 @@ For :iscman:`kea-dhcp6`, the configuration is:
         "Dhcp6": {
             "hooks-libraries": [
                 {
-                    "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
+                    "library": "libdhcp_legal_log.so",
                     "parameters": {
                         "path": "/var/log/kea",
                         "base-name": "kea-forensic6"
@@ -200,7 +200,7 @@ Examples:
         "Dhcp6": {
             "hooks-libraries": [
                 {
-                    "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
+                    "library": "libdhcp_legal_log.so",
                     "parameters": {
                         "path": "/var/log/kea",
                         "base-name": "kea-forensic6",
@@ -233,7 +233,7 @@ Examples:
         "Dhcp6": {
             "hooks-libraries": [
                 {
-                    "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
+                    "library": "libdhcp_legal_log.so",
                     "parameters": {
                         "path": "/var/log/kea",
                         "base-name": "kea-forensic6",
@@ -252,7 +252,7 @@ Additional parameters for the database connection can be specified, e.g:
       "Dhcp6": {
         "hooks-libraries": [
           {
-            "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
+            "library": "libdhcp_legal_log.so",
             "parameters": {
               "name": "database-name",
               "password": "1234",
@@ -490,7 +490,7 @@ Examples:
       "Dhcp4": {
         "hooks-libraries": [
           {
-            "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
+            "library": "libdhcp_legal_log.so",
             "parameters": {
               "name": "database-name",
               "password": "1234",
@@ -815,7 +815,7 @@ Examples:
       "Dhcp6": {
         "hooks-libraries": [
           {
-            "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
+            "library": "libdhcp_legal_log.so",
             "parameters": {
               "name": "database-name",
               "password": "1234",
index ca12a3c2cb821e77ab870f2524c79527adae1131..b1fe7e63d8616c3396269e0fcca86a93da97eec2 100644 (file)
@@ -34,7 +34,7 @@ The library can be loaded by both :iscman:`kea-dhcp4` and :iscman:`kea-dhcp6` se
       "Dhcp6": {
         "hooks-libraries": [
           {
-            "library": "/usr/local/lib/libdhcp_limits.so"
+            "library": "libdhcp_limits.so"
           }
         ]
       }
index 2081198ca905ace1578b69750db189d5900296a4..881a1329e744d2f28016aed436d48d32adf8dfa2 100644 (file)
@@ -24,7 +24,7 @@ the server's configuration:
     {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_perfmon.so",
+                "library": "libdhcp_perfmon.so",
                 "parameters": {
                     ...
                 }
@@ -408,7 +408,7 @@ A sample configuration is shown below:
     {
         "hooks-libraries": [
         {
-            "library": "lib/kea/hooks/libdhcp_perfmon.so",
+            "library": "libdhcp_perfmon.so",
             "parameters": {
                 "enable-monitoring": true,
                 "interval-width-secs": 5,
index 661a50a1a4fbf004901a72d67bb315779e6665f2..7f5f5d0fd513b25c997d19941ff4de5ed72e6af3 100644 (file)
@@ -26,7 +26,7 @@ by adding it to the ``hooks-libraries`` element of the server's configuration:
     {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_ping_check.so",
+                "library": "libdhcp_ping_check.so",
                 "parameters": {
                     ...
                 }
@@ -132,7 +132,7 @@ The following configuration excerpt illustrates a global-level configuration:
 
     {
         "hooks-libraries": [{
-            "library": "lib/kea/hooks/libdhcp_ping_check.so",
+            "library": "libdhcp_ping_check.so",
             "parameters": {
                 "enable-ping-check" : true,
                 "min-ping-requests" : 1,
index 88bad10c152ee29396eb19035e13398012c93caa..014463ca84f82ca193c2f4af80d3273273194ce8 100644 (file)
@@ -268,7 +268,7 @@ in the Kea source and is copied below.
         // Add hooks here.
         "hooks-libraries": [
         {
-            "library": "/opt/lib/libdhcp_rbac.so",
+            "library": "libdhcp_rbac.so",
             "parameters": {
                 // This section configures the RBAC hook library.
                 // Mandatory parameters.
index 31f8ad15745148ac5d5f21d83e553084c65a4d7c..3ef4728c726bcf1d87326eb15c0c02ab6052fe45 100644 (file)
@@ -22,7 +22,7 @@ packet-processing hook points.
     {
         "hooks-libraries": [
             {
-                "library": "/usr/local/lib/libdhcp_run_script.so",
+                "library": "libdhcp_run_script.so",
                 "parameters": {
                     "name": "/full_path_to/script_name.sh",
                     "sync": false
index fce8cfa8e07b94f8ccc4643eb169b5377d94ca28..f14f95f8f447e0b571414a21d74d9bf9ccca876f 100644 (file)
@@ -49,7 +49,7 @@ parameters:
    "Dhcp6": {
        "hooks-libraries": [
            {
-               "library": "/path/libdhcp_stat_cmds.so"
+               "library": "libdhcp_stat_cmds.so"
            },
            ...
        ]
index 0af1eb1184830051cc83008afb26e74527e9315c..b8c56ef01dd553f63aa41d61df34e770ef3b9ab4 100644 (file)
@@ -193,10 +193,10 @@ configuration would be:
         "Dhcp6": {
             "hooks-libraries": [
                 {
-                    "library": "/opt/first_custom_hooks_example.so"
+                    "library": "first_custom_hooks_example.so"
                 },
                 {
-                    "library": "/opt/local/second_custom_hooks_example.so",
+                    "library": "second_custom_hooks_example.so",
                     "parameters": {
                         "mail": "spam@example.com",
                         "floor": 13,
@@ -227,7 +227,7 @@ directory determined during compilation and shown in the config report as
 "Hooks directory".  This value may be overridden at startup by setting the
 environment variable ``KEA_HOOKS_PATH`` to the desired path.  If a path other
 than this value is used in a ``library`` element Kea will emit an error and refuse
-to load the library. For ease of use ``library`` elements may simply omit path
+to load the library. For ease of use ``library`` elements should simply omit path
 components, specifying the file name only as shown below:
 
 .. code-block:: json
@@ -245,23 +245,6 @@ components, specifying the file name only as shown below:
         }
     }
 
-This snippet (on Debian 12) is equivalent to:
-
-.. code-block:: json
-
-    {
-        "Dhcp6": {
-            "hooks-libraries": [
-                {
-                    "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/first_custom_hooks_example.so"
-                },
-                {
-                    "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/second_custom_hooks_example.so"
-                }
-            ]
-        }
-    }
-
 .. note::
     The support for path components in ``library`` elements is deprecated as of 2.7.8, and will
     eventually be removed.
@@ -393,7 +376,7 @@ The Limits hook uses user-context in classes and subnets to set parameters. For
         ],
         "hooks-libraries": [
           {
-            "library": "/usr/local/lib/libdhcp_limits.so"
+            "library": "libdhcp_limits.so"
           }
         ],
         "subnet6": [
@@ -459,10 +442,10 @@ It lowers the number of concurrently parked packets to 128.
         "parked-packet-limit": 128
         "hooks-libraries": [
           {
-            "library": "/usr/lib/kea/hooks/libdhcp_lease_cmds.so"
+            "library": "libdhcp_lease_cmds.so"
           },
           {
-            "library": "/usr/lib/kea/hooks/libdhcp_ha.so",
+            "library": "libdhcp_ha.so",
             "parameters": {
               "high-availability": [
                 {
index 4ed0d3eb083c4427e5bafb5975d7698542004f87..7b4b61b14db8c560e805aafb47f4cdaec706c183 100644 (file)
@@ -38,7 +38,7 @@ configuration:
 @code
 "Dhcp4": {
     "hooks-libraries": [
-        {   "library": "/usr/local/lib/libdhcp_bootp.so" },
+        {   "library": "libdhcp_bootp.so" },
         ...
     ]
 }
index 18e264840cce4bcb085aa9182e76891b1cc41db4..cfc1c2b9dd59cebfdc2cdb78970820128d3f996a 100644 (file)
@@ -40,7 +40,7 @@ configuration:
 @code
 "Dhcp4": {
     "hooks-libraries": [
-        {   "library": "/usr/local/lib/libdhcp_flex_id.so",
+        {   "library": "libdhcp_flex_id.so",
             "parameters": {
                 "identifier-expression": "relay4[2].hex",
                 "replace-client-id": true
@@ -56,7 +56,7 @@ To configure it for kea-dhcp6, the commands are simply as shown below:
 @code
 "Dhcp6": {
     "hooks-libraries": [
-        {   "library": "/usr/local/lib/libdhcp_flex_id.so",
+        {   "library": "libdhcp_flex_id.so",
             "parameters": {
                 "identifier-expression": "relay6[0].option[37].hex",
                 "replace-client-id": true,
index 72b76a8c4c770300bc5981dec6ccdab94084159f..0436b791a5445b2955e8ba6d2d01e870b18c6924 100644 (file)
@@ -40,7 +40,7 @@ configuration:
 @code
 "Dhcp4": {
     "hooks-libraries": [
-        {   "library": "/usr/local/lib/libdhcp_flex_option.so",
+        {   "library": "libdhcp_flex_option.so",
             "parameters": {
                 "options": [
                     {
@@ -61,7 +61,7 @@ To configure it for kea-dhcp6, the commands are simply as shown below:
 @code
 "Dhcp6": {
     "hooks-libraries": [
-        {   "library": "/usr/local/lib/libdhcp_flex_option.so",
+        {   "library": "libdhcp_flex_option.so",
             "parameters": {
                 "options": [
                     {
index a0d2d3f22e0a3f617f7b1c0e251e0578a2ac8c71..1bf1b543693572a84d330dfe893cb1e9568f5984 100644 (file)
@@ -355,7 +355,7 @@ configuration:
 @code
 "Dhcp4": {
     "hooks-libraries": [
-        { "library": "/usr/local/lib/libdhcp_legal_log.so",
+        { "library": "libdhcp_legal_log.so",
           "parameters": {
             "path": "/var/log/kea",
             "base-name": "kea-legal4" } },
@@ -369,7 +369,7 @@ To configure it for kea-dhcp6, the commands are simply as shown below:
 @code
 "Dhcp6": {
     "hooks-libraries": [
-        { "library": "/usr/local/lib/libdhcp_legal_log.so",
+        { "library": "libdhcp_legal_log.so",
           "parameters": {
             "path": "/var/log/kea",
             "base-name": "kea-legal6" } },
index 6fbba7425f6cca71d6dadaffe98cd400955bfb7f..4f3fec5dd53da695976090e5be4ab64996e40d50 100644 (file)
@@ -38,7 +38,7 @@ the following Kea4 configuration:
 @code
 "Dhcp4": {
     "hooks-libraries": [
-        {   "library": "/usr/local/lib/libdhcp_run_script.so",
+        {   "library": "libdhcp_run_script.so",
             "parameters": {
                 "name": "/full_path_to/script_name.sh",
                 "sync": false
@@ -55,7 +55,7 @@ the following Kea6 configuration:
 @code
 "Dhcp6": {
     "hooks-libraries": [
-        {   "library": "/usr/local/lib/libdhcp_run_script.so",
+        {   "library": "libdhcp_run_script.so",
             "parameters": {
                 "name": "/full_path_to/script_name.sh",
                 "sync": false
index 5d9d8fd9eed57334ddd2a9da65564a42b47cba27..f88ea3e597e4ddef660fee4927ad29829056b336 100644 (file)
@@ -918,7 +918,7 @@ DHCPv4 module, it must be listed in the "hooks-libraries" element of the
        :
     "hooks-libraries": [
         {
-            "library": "/usr/local/lib/example.so"
+            "library": "example.so"
         }
     ]
         :
@@ -1325,10 +1325,10 @@ as separate elements of the hooks-libraries configuration element, e.g.,
        :
     "hooks-libraries": [
         {
-            "library": "/usr/lib/library1.so"
+            "library": "library1.so"
         },
         {
-            "library": "/opt/library2.so"
+            "library": "library2.so"
         }
        :
     ]
@@ -1402,15 +1402,15 @@ logic. Consider the following example:
 @code
 "hooks-libraries": [
     {
-        "library": "/opt/first.so"
+        "library": "first.so"
     },
     {
-        "library": "/opt/second.so",
+        "library": "second.so",
         "parameters": {
         }
     },
     {
-        "library": "/opt/third.so",
+        "library": "third.so",
         "parameters": {
             "mail": "spam@example.com",
             "floor": 13,
index 4c38ee20f9816aa24c346e8af23d08425953b47d..f541d3f9d2a53fd3de45d7e1e5867724c505144e 100644 (file)
@@ -140,11 +140,11 @@ public:
     ///
     /// "hooks-libraries": [
     ///     {
-    ///        "library": "/opt/charging.so",
+    ///        "library": "charging.so",
     ///        "parameters": {}
     ///    },
     ///    {
-    ///        "library": "/opt/local/notification.so",
+    ///        "library": "notification.so",
     ///        "parameters": {
     ///            "mail": "alarm@example.com",
     ///            "floor": 42,