Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Strange end time in Status: DHCP leases

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 3 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      ristosu
      last edited by

      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  active

      Seems 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

      1 Reply Last reply Reply Quote 0
      • R Offline
        ristosu
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • P Offline
          phil.davis
          last edited by

          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/1553

          Leases 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.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • luckman212L Offline
            luckman212 LAYER 8
            last edited by

            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

            dhcpd.conf.txt

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.