When looking for an interface appropriate for the (new or changing)
route in ifa_ifwithroute(), as the last resort, look up the route to the gateway, not destination (to derive the interface from). PR: kern/27852 Submitted by: Iasen Kostoff <tbyte@tbyte.org> MFC after: 2 weeks
This commit is contained in:
parent
db6dde6331
commit
ffdc316d48
@ -425,7 +425,7 @@ ifa_ifwithroute(flags, dst, gateway)
|
||||
if (ifa == 0)
|
||||
ifa = ifa_ifwithnet(gateway);
|
||||
if (ifa == 0) {
|
||||
struct rtentry *rt = rtalloc1(dst, 0, 0UL);
|
||||
struct rtentry *rt = rtalloc1(gateway, 0, 0UL);
|
||||
if (rt == 0)
|
||||
return (0);
|
||||
rt->rt_refcnt--;
|
||||
|
Loading…
Reference in New Issue
Block a user