pfSense bugtracker: Issueshttps://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162014-03-04T16:42:30ZpfSense bugtracker
Redmine pfSense - Bug #3500 (Resolved): DHCP Leases List Not Showing Hostname in Some Caseshttps://redmine.pfsense.org/issues/35002014-03-04T16:42:30ZDavid Justldavid@rockauto.com
<p>The DHCP leases list shows a blank in the hostname field for some leases, even though the log shows that a hostname was received at registration. The hostnames also do appear in the /var/dhcpd/var/db/dhcpd.leases file, which is parsed to create the GUI list. The problem appears to be in the parsing logic, where the record separator is set to be a close brace, '}'. In some cases, a record may include a 'uid' value that contains a close brace:</p>
<p>lease 192.168.1.10 {<br /> starts 2 2014/03/04 21:02:04;<br /> ends 2 2014/03/04 22:02:04;<br /> cltt 2 2014/03/04 21:02:04;<br /> binding state active;<br /> next binding state free;<br /> rewind binding state free;<br /> hardware ethernet 00:11:22:33:44:55;<br /> uid "\001\020x\322\367\333}";<br /> client-hostname "MyHost";<br />}</p>
<p>This breaks the parsing for that record and causes the lease list to show a blank hostname.</p>