From 94334d8fc4e00eb0ef672688cc6ad3b0aa68a717 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Thu, 20 Jun 1996 22:53:08 +0000 Subject: [PATCH] Use the route that's guaranteed to exist when picking a source address for ARP requests. The NetBSD version of this patch (see NetBSD PR kern/2381) has this change already. This should close our PR kern/1140 . Although it's not quite what he submitted, I got the idea from him so Submitted by: Jin Guojun --- sys/netinet/if_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index e5bf08f03512..94c3c73e4892 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ether.c 8.1 (Berkeley) 6/10/93 - * $Id: if_ether.c,v 1.30 1996/06/08 08:18:56 bde Exp $ + * $Id: if_ether.c,v 1.31 1996/06/13 02:54:19 davidg Exp $ */ /* @@ -365,7 +365,7 @@ arpresolve(ac, rt, m, dst, desten, rt0) rt->rt_expire = time.tv_sec; if (la->la_asked++ < arp_maxtries) arprequest(ac, - &(SIN(rt0->rt_ifa->ifa_addr)->sin_addr.s_addr), + &(SIN(rt->rt_ifa->ifa_addr)->sin_addr.s_addr), &(SIN(dst)->sin_addr.s_addr), ac->ac_enaddr); else {