#16825: odhcpd ignores static leases
----------------------+------------------------------
Reporter: arnd@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Backfire 10.03.2
Component: packages | Version: Trunk
Keywords: |
----------------------+------------------------------
odhcpd apparently contains an implementation for static ipv4 leases, but
there are multiple bugs that prevent it from working:
* The lease expiry time is set to 0 for static leases, which lets them
expire when they are first seen.
* The loop to add new leases from the 'leases' list into the
iface->dhcpv4_assignments list doesn't work, as it only adds new entries
sorted by IP address but fails if no existing entries are present
* The comparison to check whether an assignment matches the network mask
contains a typo and cannot work
* if a client asks for a new lease, the server checks if both IP and MAC
address match before considering an existing entry. This means the static
leases are always ignored if the client doesn't know the IP address
already. Instead it should match the MAC address first and consider
entries that have a non-matching address as well.
--
Ticket URL: <https://dev.openwrt.org/ticket/16825>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets