Author: cgutman
Date: Mon Aug 13 02:54:13 2012
New Revision: 57066
URL:
http://svn.reactos.org/svn/reactos?rev=57066&view=rev
Log:
[IP]
- Favor routers that have responded to our ARP queries during route selection
Modified:
trunk/reactos/lib/drivers/ip/network/router.c
Modified: trunk/reactos/lib/drivers/ip/network/router.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/network/rou…
==============================================================================
--- trunk/reactos/lib/drivers/ip/network/router.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/network/router.c [iso-8859-1] Mon Aug 13 02:54:13 2012
@@ -277,7 +277,7 @@
A2S(&NCE->Address), Length));
if(Length >= MaskLength && (Length > BestLength || !BestNCE) &&
- (!(State & NUD_STALE) || !BestNCE)) {
+ ((!(State & NUD_STALE) && !(State & NUD_INCOMPLETE)) ||
!BestNCE)) {
/* This seems to be a better router */
BestNCE = NCE;
BestLength = Length;