Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164462608
D58444.id182915.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
590 B
Referenced Files
None
Subscribers
None
D58444.id182915.diff
View Options
diff --git a/sys/net/route.c b/sys/net/route.c
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -452,10 +452,9 @@
info->rti_ifp = info_get_ifp(info);
/*
* If we have source address specified, try to find it
- * TODO: avoid enumerating all ifas on all interfaces.
*/
if (info->rti_ifa == NULL && ifaaddr != NULL)
- info->rti_ifa = ifa_ifwithaddr(ifaaddr);
+ info->rti_ifa = ifa_ifwithaddr_fib(ifaaddr, fibnum);
if ((info->rti_ifa == NULL) && ((info->rti_flags & RTF_GATEWAY) != 0) &&
(gateway->sa_family != dst->sa_family))
return (rt_getifa_family(info, fibnum));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 2, 5:28 AM (7 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35497925
Default Alt Text
D58444.id182915.diff (590 B)
Attached To
Mode
D58444: routing: Limit enumeration of ifas to fib in rt_getifa_fib
Attached
Detach File
Event Timeline
Log In to Comment