]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[898-add-a-new-hook-to-support-bootp] Updated docs 898-add-a-new-hook-to-support-bootp
authorFrancis Dupont <fdupont@isc.org>
Mon, 18 Nov 2019 10:12:00 +0000 (11:12 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 18 Nov 2019 10:12:00 +0000 (11:12 +0100)
doc/devel/Doxyfile
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/hooks.rst
doc/sphinx/mes-files.txt

index 5032a8832522b56094dd593aff2b4c285990f606..7733cd0bd6ba6c7904a67d86f18c06161f2d8636 100644 (file)
@@ -779,6 +779,8 @@ INPUT                  = ../../src/bin/agent \
                          ../../src/bin/netconf \
                          ../../src/bin/perfdhcp \
                          ../../src/bin/sockcreator \
+                         ../../src/hooks/dhcp/bootp \
+                         ../../src/hooks/dhcp/flex_option \
                          ../../src/hooks/dhcp/high_availability \
                          ../../src/hooks/dhcp/lease_cmds \
                          ../../src/hooks/dhcp/stat_cmds \
index 3f617f73588076cdfb758a2f83fbb9331f73d716..0270887dc7aa5a1e823a289929896d6fc663a341 100644 (file)
@@ -5679,7 +5679,11 @@ However, some of them are implications of the design choices made. Those
 are clearly marked as such.
 
 -  BOOTP (`RFC 951 <https://tools.ietf.org/html/rfc951>`__) is not
-   supported. This is a design choice; BOOTP support is not planned.
+   supported. This is a design choice; historic BOOTP support is not planned.
+
+-  BOOTP with vendor information extensions
+   (`RFC 1497 <https://tools.ietf.org/html/rfc1497>`__) is supported
+   by the BOOTP hooks library; see :ref:`bootp-library` for details.
 
 -  On Linux and BSD system families the DHCP messages are sent and
    received over the raw sockets (using LPF and BPF) and all packet
index 449bbf330af64d6598acfdfe3af367b764698fb8..8f1d5da55276f2667568f6affe49000077d61e9a 100644 (file)
@@ -441,6 +441,10 @@ loaded by the correct process per the table below.
    |                 |               |database. This library may only be used in conjuction with  |
    |                 |               |one of the supported configuration backend implementations. |
    +-----------------+---------------+------------------------------------------------------------+
+   | BOOTP           | Kea sources   |The BOOTP hooks library recognizes received BOOTP requests: |
+   |                 | (since 1.7.2) |they are translated into DHCPREQUEST packets, put into the  |
+   |                 |               |BOOTP client class and get infinite lifetime leases.        |
+   +-----------------+---------------+------------------------------------------------------------+
 
 ISC hopes to see more hooks libraries become available as time
 progresses, developed both internally and externally. Since this list
@@ -2775,6 +2779,30 @@ following:
 The ``network6-subnet-del`` command uses exactly the same syntax for
 both the command and the response.
 
+.. _bootp-library:
+
+bootp BOOTP support
+===================
+
+This library adds support for BOOTP with vendor information extensions
+(`RFC 1497 <https://tools.ietf.org/html/rfc1497>`__). Received BOOTP
+requests are recognized, translated into DHCPREQUEST packets by adding
+a dhcp-message-type option and put into the "BOOTP" client class.
+Members of this class get infinite lifetime leases but the class can
+be used too for instance to guard a pool of addresses.
+
+The library is available since Kea 1.7.2 and can be loaded in a
+similar way as other hook libraries by the ``kea-dhp4`` process.
+It takes no parameter.
+
+::
+
+    "Dhcp4": {
+        "hook_libraries": [
+            {   "library": "/usr/local/lib/libdhcp_bootp.so" },
+            ...
+        ]
+    }
 
 .. include:: hooks-class-cmds.rst
 .. include:: hooks-cb-cmds.rst
index 11b5feae5af74a22fe98e68420e904a19be0fb24..697508bede2488c23764e6f90aee083d681e786c 100644 (file)
@@ -1,3 +1,5 @@
+src/hooks/dhcp/flex_option/flex_option_messages.mes
+src/hooks/dhcp/bootp/bootp_messages.mes
 src/hooks/dhcp/mysql_cb/mysql_cb_messages.mes
 src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes
 src/hooks/dhcp/high_availability/ha_messages.mes