Fix by WaxDragon: Pass the Metric parameter from RouterCreateRoute to RouterAddRoute. This only needs to be hard-coded in *one* place.

svn path=/trunk/; revision=12403
This commit is contained in:
Filip Navara 2004-12-30 13:54:21 +00:00
parent 4801e8cc23
commit d673e21b8c

View file

@ -395,7 +395,7 @@ PFIB_ENTRY RouterCreateRoute(
return NULL;
}
FIBE = RouterAddRoute(NetworkAddress, Netmask, NCE, 1);
FIBE = RouterAddRoute(NetworkAddress, Netmask, NCE, Metric);
if (!FIBE) {
/* Not enough free resources */
NBRemoveNeighbor(NCE);