Regression #11510
closedARP Table populates hostname values using expired DHCP lease data
100%
Description
Description based on discussion from https://forum.netgate.com/topic/161139/arp-bug-pfsense-2-5-0
In Diagnostic -> ARP Table sometimes you can find wrong values in Hostname column. For me it happens only for addresses which currently are static but some time ago were assigned by DHCP - in hostname column I get IP from the time when it wasn't static.
I opened diag_arp.inc and it looks that function system_get_dhcpleases (called in prepare_ARP_table) is returning double entries for one mac:
- old: with "type" = "dynamic", "act" = "expired" and "online" = "offline"
- new: with "type" = "static", "act" = "static" and "online" = "online"
But I don't know if this the only possible scenario that will give wrong results.
As an experiment I made diff (based on v2.5.0 git tag and attached to this issue) and at least host name column looks good but I don't have enough knowledge to tell if this is correct solution. But maybe it will point somebody to proper fix.
Files
Updated by Jim Pingle over 3 years ago
- Tracker changed from Bug to Regression
- Target version set to CE-Next
Updated by Jim Pingle over 3 years ago
- Status changed from New to In Progress
- Assignee set to Jim Pingle
- Target version changed from CE-Next to 2.6.0
I was able to reproduce this. I used a slightly different fix.
Updated by Jim Pingle over 3 years ago
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
Applied in changeset 148c79da63eb1912fce81838af341b294bf60849.
Updated by Jim Pingle over 3 years ago
- Subject changed from ARP Table - hostname taken from expired leases to ARP Table populates hostname values using expired DHCP lease data
- Category changed from Web Interface to Diagnostics
Updating subject for release notes.
Updated by Jim Pingle over 3 years ago
- Status changed from Feedback to Closed
This looks good on current builds on the system where I could reproduce it before.
Updated by Jim Pingle over 3 years ago
- Target version changed from 2.6.0 to 2.5.2