Development

This commit is contained in:
Matthew Grotke 2026-06-03 03:34:35 -04:00
parent 2a8f3bc7cc
commit aca936fcea

View file

@ -578,7 +578,7 @@ def refresh_arp_cache(cfg):
continue
used_match = re.search(r'used\s+(\d+)/', line)
used_secs = int(used_match.group(1)) if used_match else 0
if used_secs > ARP_MAX_AGE_SECS:
if state != 'REACHABLE' and used_secs > ARP_MAX_AGE_SECS:
continue
idx = parts.index('lladdr')
mac = parts[idx + 1].lower()