- Register an interface route for interfaces with a static IP address

svn path=/trunk/; revision=52729
This commit is contained in:
Cameron Gutman 2011-07-18 16:38:36 +00:00
parent 1fdc23fa32
commit 70bcf6fc0a
2 changed files with 5 additions and 1 deletions

View file

@ -265,6 +265,11 @@ BOOLEAN IPRegisterInterface(
IF->Index = ChosenIndex;
if (!AddrIsUnspecified(&IF->Unicast))
{
IPAddInterfaceRoute(IF);
}
/* Add interface to the global interface list */
TcpipInterlockedInsertTailList(&InterfaceListHead,
&IF->ListEntry,

View file

@ -125,7 +125,6 @@ NDIS_STATUS LoopRegisterAdapter(
AddrInitIPv4(&Loopback->Broadcast, LOOPBACK_BCASTADDR_IPv4);
IPRegisterInterface(Loopback);
IPAddInterfaceRoute(Loopback);
TI_DbgPrint(MAX_TRACE, ("Leaving.\n"));