You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running 21.02 on a FriendlyArm R4S. Noticed that all dhcp leases in Luci show as expired. Checking dhcp.leases, it shows:
43200 dc:xx:xx:xx:xx:xx 192.168.1.52 octopi *
According to dnsmasq, the first column should be the timestamp of when the lease is expiring (so either 'now + leasetime' or 'uptime + leasetime'). In this case, it is just '0 + leasetime'.
Not sure if this is an issue with dnsmasq or openwrt itself. Happy to add more info if needed!
The text was updated successfully, but these errors were encountered:
This turns out to be an effect of HAVE_BROKEN_RTC flag in dnsmasq. However, ubus still returns expiration time of 0 for all IPv4 leases -> listing as expired in Luci
Did you build yourself? The HAVE_BROKEN_RTC build option should be disabled by default in official builds. LuCI currently expects UNIX timestamps in the expiration time column and not relative remaining validity times.
I am considering adding some heuristics to workaround the problem. Basically if the expire value is smaller than a specific cutoff date (say 2020-01-01, 1577833200) then treat it as relative, else as absolute expiration value, then act accordingly.
Handling the other mode seems quite difficult, as the first column will only statically show the lease time. I am actually not sure if there is a way to calculate the remaining time, unless it is possible to find out when the lease was handed out and calculate from there.
overnight_spaghetti:
I'm running 21.02 on a FriendlyArm R4S. Noticed that all dhcp leases in Luci show as expired. Checking dhcp.leases, it shows:
43200 dc:xx:xx:xx:xx:xx 192.168.1.52 octopi *
According to dnsmasq, the first column should be the timestamp of when the lease is expiring (so either 'now + leasetime' or 'uptime + leasetime'). In this case, it is just '0 + leasetime'.
Not sure if this is an issue with dnsmasq or openwrt itself. Happy to add more info if needed!
The text was updated successfully, but these errors were encountered: