git: netinet: Clean up interface routes handling in arp_rtrequest()
Aaron LI
aly at crater.dragonflybsd.org
Fri Nov 13 21:51:13 PST 2026
commit 5a47208162ace103996cb1a3aa491c5a5ce5dda9
Author: Aaron LI <aly at aaronly.me>
Date: Sat Nov 14 11:18:56 2026 +0800
netinet: Clean up interface routes handling in arp_rtrequest()
in_addroute() gives every non-host, non-multicast IPv4 route either
RTF_CLONING or RTF_PRCLONING, so manually added interface routes would
have RTF_PRCLONING. As a result, we can clean up arp_rtrequest() to
check either RTF_CLONING or RTF_PRCLONING in handling a cloned route,
without hacking the RTF_CLONING flag.
An edge case is a non-host route with a "/32" mask. However, that case
doesn't make practical sense and should be normalized to a host route.
That will be addressed in the coming commits.
Summary of changes:
sys/netinet/if_ether.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5a47208162ace103996cb1a3aa491c5a5ce5dda9
--
DragonFly BSD source repository
More information about the Commits
mailing list