Project

General

Profile

Actions

Regression #11510

closed

ARP Table populates hostname values using expired DHCP lease data

Added by Tomasz K. 9 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Target version:
Start date:
02/23/2021
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
21.05
Release Notes:
Default
Affected Version:
2.5.0
Affected Architecture:
amd64

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

diag_arp.inc.diff (590 Bytes) diag_arp.inc.diff experimental fix Tomasz K., 02/23/2021 11:34 AM
Actions

Also available in: Atom PDF