Browse Source

isc-dhcp: allow hosts to have dhcp options

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>
lilik-openwrt-22.03
Philip Prindeville 7 years ago
parent
commit
ec8aa082fc
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      net/isc-dhcp/Makefile
  2. +1
    -0
      net/isc-dhcp/files/dhcpd.init

+ 1
- 1
net/isc-dhcp/Makefile View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=isc-dhcp PKG_NAME:=isc-dhcp
UPSTREAM_NAME:=dhcp UPSTREAM_NAME:=dhcp
PKG_VERSION:=4.4.0 PKG_VERSION:=4.4.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=BSD-3-Clause PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE


+ 1
- 0
net/isc-dhcp/files/dhcpd.init View File

@ -112,6 +112,7 @@ static_host_add() {
if [ -n "$gateway" ] ; then if [ -n "$gateway" ] ; then
echo " option routers $gateway;" echo " option routers $gateway;"
fi fi
config_list_foreach "$cfg" "dhcp_option" append_dhcp_options
echo "}" echo "}"
done done
} }


Loading…
Cancel
Save