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 <jin@george.lbl.gov>
This commit is contained in:
parent
460e479128
commit
94334d8fc4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user