Date: Wed, 19 Nov 2008 00:11:20 GMT From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 153186 for review Message-ID: <200811190011.mAJ0BKNQ086681@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=153186 Change 153186 by julian@julian_trafmon1 on 2008/11/19 00:10:38 revert to old error valuse if gateway not reponding. Affected files ... .. //depot/projects/arp-v2/src/sys/netinet/if_ether.c#12 edit Differences ... ==== //depot/projects/arp-v2/src/sys/netinet/if_ether.c#12 (text+ko) ==== @@ -325,10 +325,8 @@ if (la->la_asked < V_arp_maxtries) error = EWOULDBLOCK; /* First request. */ else - error = EHOSTUNREACH; -/* Qing - which one is accurate ?? - error = (rt == rt0) ? EHOSTDOWN : EHOSTUNREACH; -*/ + error = + (rt0->rt_flags & RTF_GATEWAY) ? EHOSTDOWN : EHOSTUNREACH; if (la->la_asked == 0 || la->la_expire != time_uptime) { la->la_expire = time_uptime;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811190011.mAJ0BKNQ086681>