mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
dnsmasq writes a statefile for DHCPv4 leases with the MAC address as the second field and the clientid as the fifth field. The clientid starts with a type byte (0x01 = ethernet, 0xff = DUID/IAID identifier). Similarly, odhcpd writes the MAC address as the second field for IPv4 leases. This patch changes the behaviour of rpcd-mod-luci so that it doesn't report a non-DUID as a DUID. Signed-off-by: David Härdeman <david@hardeman.nu>