PERFORCE change 153186 for review

Julian Elischer julian at FreeBSD.org
Tue Nov 18 16:11:20 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=153186

Change 153186 by julian at 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;


More information about the p4-projects mailing list