openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
162 stars 98 forks source link

Infinite leasetime support and several bugfixes #91

Closed dedeckeh closed 7 years ago

dedeckeh commented 7 years ago

PR has the following commits -Support for infinite leasetime per dhcp and host section; fixes broken IPv6 connectivity in case infinite is specified as a leasetime value for a dhcp pool as odhcpd was considering this as an invalid value and closed the interface. This particular problem pops up if dnsmasq is used as DHCPv4 server and one of the pools is assigned an infinite leasetime. -Support for leasetime requested by DHCPv4 clients -Fixes negative valid number being displayed in ubus dhcp ipv4leases -Keeps DHCPv4 assignment lifetime in sync with DHCP client leasetime -Displays infinite as INT32_MAX in odhcpd hosts file