git: net: Integrate link_rtrequest() into rt_getifa()
Aaron LI
aly at crater.dragonflybsd.org
Wed Mar 20 08:33:49 PDT 2024
commit e255cd8baa819f70390fa56bd053f4c0d62539a2
Author: Aaron LI <aly at aaronly.me>
Date: Mon Mar 18 11:17:07 2024 +0800
net: Integrate link_rtrequest() into rt_getifa()
When a route was inserted but had an invalid IFA (rt_ifa), the
link_rtrequest() would be called to fix it with a link-level gateway.
Move the link_rtrequest() logic into the pre-insertion rt_getifa() step,
and thus simplifies the IFA selection. This will also help the
forthcoming mangement of loopback routes for interface addresses.
Obtained-from: FreeBSD
- https://reviews.freebsd.org/D20076
- https://github.com/freebsd/freebsd-src/commit/2ad7ed6e4a84448234e9aaef3c9fa884848f7387
Summary of changes:
sys/net/if.c | 27 ---------------------------
sys/net/route.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++-----
2 files changed, 49 insertions(+), 32 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e255cd8baa819f70390fa56bd053f4c0d62539a2
--
DragonFly BSD source repository
More information about the Commits
mailing list