- Favor routers that have responded to our ARP queries during route selection

svn path=/trunk/; revision=57066
This commit is contained in:
Cameron Gutman 2012-08-13 02:54:13 +00:00
parent 360a87c9f9
commit 307df8d456

View file

@ -277,7 +277,7 @@ PNEIGHBOR_CACHE_ENTRY RouterGetRoute(PIP_ADDRESS Destination)
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;