Strange end time in Status: DHCP leases
-
Hi,
One of my DHCP clients has lines like this in Status: DHCP leases:
192.168.1.44 78:a3:e4:eb:e0:78 2015/03/07 17:08:35 cltt 6 offline active
192.168.2.16 78:a3:e4:eb:e0:78 2015/03/08 12:37:57 cltt 0 online activeSeems to be an Apple device. Anyone seen this before? (cltt = client last transaction time) Normally, end time is a date&time 2h or 24h later than start time.
Risto
-
Looks like I have a partial answer to my question: dhcpd.log tells me that this iPhone is sending BOOTREQUESTs instead of DHCPREQUESTs.
The corresponding chapter in dhcpd.leases looks like this:
lease 192.168.2.16 {
starts 0 2015/03/08 14:59:44;
ends never;
cltt 0 2015/03/08 14:59:44;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 78:a3:e4:eb:e0:78;
}Obviously the code that builds the web page finds 'ends', hops over the next word, and takes the following two.
Risto
-
I know this has been reported before, and I thought the code had been modified to handle the "never" case. But I must have been dreaming.
This code should fix it: https://github.com/pfsense/pfsense/pull/1553Leases file format ref: https://www.freebsd.org/cgi/man.cgi?query=dhcpd.leases&sektion=5&apropos=0&manpath=FreeBSD+9.2-RELEASE+and+Ports
If a lease will never expire, date is never instead of an actual date.
-
Are things like the below screenshot normal? Just wondering, I've never seen such things before ("tstp never" or "cltt 3" etc). This is from a 2.1.5 nanobsd system.
dhcpd.conf attached