diff options
author | ru <ru@FreeBSD.org> | 2001-06-04 14:13:15 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-06-04 14:13:15 +0000 |
commit | 2f07da51082950be990dbf4d14677685b0890db8 (patch) | |
tree | bf5eb63d77123647fda341ebecd0c2504eceb6ae /sys/net | |
parent | 3b446f4c1954050d0122810084be4e2f19cd82d8 (diff) | |
download | FreeBSD-src-2f07da51082950be990dbf4d14677685b0890db8.zip FreeBSD-src-2f07da51082950be990dbf4d14677685b0890db8.tar.gz |
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
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 884f0eb..7454280 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -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--; |