isc-dhcp: some IoTs need forced rebinding/renewal times 21597/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Mon, 17 Jul 2023 21:31:16 +0000 (15:31 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Sun, 30 Jul 2023 22:09:51 +0000 (16:09 -0600)
I've noticed my AppleTV's refresh their leases ever minute unless
I explicitly force their renewal time higher, because it doesn't
default to 50% of the lease time.

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

index 309d3ec87abfa37c4c3b2526ff8cd8602d64591c..3825944845394e62c0b2f92db97e3a1b2f6eaaf1 100755 (executable)
@@ -297,6 +297,10 @@ static_host_add() {
                        extra_options="$extra_options${extra_options:+ }0c" ;;
                domain-name)
                        extra_options="$extra_options${extra_options:+ }0f" ;;
+               renewal-time)
+                       extra_options="$extra_options${extra_options:+ }3a" ;;
+               rebinding-time)
+                       extra_options="$extra_options${extra_options:+ }3b" ;;
                fqdn)
                        extra_options="$extra_options${extra_options:+ }51" ;;
                routes)