git: DragonFly_RELEASE_6_4 netinet: fix ARP resolution during the first second of uptime
Aaron LI
aly at crater.dragonflybsd.org
Thu Nov 12 23:21:42 PST 2026
commit d6e46daa23f70e1473f0314b55de04fcfc72e428
Author: LI Leding <lileding at gmail.com>
Date: Mon Oct 5 02:29:11 2026 +0800
netinet: fix ARP resolution during the first second of uptime
A cloned route created while time_uptime is zero passes a zero expiry
to its neighbors. Zero denotes a permanent entry, so unresolved dynamic
neighbors never send ARP requests.
Add the arp_expire_unresolved (= time_uptime + 1) to keep dynamic expiry
nonzero and track the last request time separately, using la_asked to
indicate whether that time is valid. This preserves same-second rate
limiting and permanent-entry semantics without changing the routing ABI.
While there, fix the code to add arpt_down to rt_expire only when it's a
cloned route.
Co-authored-by: Aaron LI <aly at aaronly.me>
GitHub-PR: https://github.com/DragonFlyBSD/DragonFlyBSD/pull/58
Summary of changes:
sys/netinet/if_ether.c | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d6e46daa23f70e1473f0314b55de04fcfc72e428
--
DragonFly BSD source repository
More information about the Commits
mailing list