isc-dhcp: allow hosts to have dhcp options 5891/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 10 Apr 2018 03:01:33 +0000 (21:01 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 10 Apr 2018 03:01:33 +0000 (21:01 -0600)
Sometimes it's necessary to set per-host options like:

    list dhcp_option 'option:always-broadcast,true'

for hosts that don't understand unicast replies.  There might
be other options you might want to set on a per-host basis,
such as extensions-path, dhcp-message-text, etc.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
net/isc-dhcp/Makefile
net/isc-dhcp/files/dhcpd.init

index f22d743278585e7fe8f0cf041c2ed3e6c8f99af0..ed4ca7052a76ec6748302b5f4fada45566b57cf1 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=isc-dhcp
 UPSTREAM_NAME:=dhcp
 PKG_VERSION:=4.4.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
index 8eb20d101db3bb4fad7eed754e82b58b785538f1..70841903e116be3c746f26b427b2f6bdc5363c67 100644 (file)
@@ -112,6 +112,7 @@ static_host_add() {
                if [ -n "$gateway" ] ; then
                        echo " option routers $gateway;"
                fi
+               config_list_foreach "$cfg" "dhcp_option" append_dhcp_options
                echo "}"
        done
 }