- Merge aicom-network-fixes up to r38799

- This should finally fix the "UNTRACK: SPECIFIED ALREADY FREE ITEM 0" bug

svn path=/trunk/; revision=38800
This commit is contained in:
Cameron Gutman 2009-01-16 23:30:40 +00:00
parent 12f2920bba
commit f55e4a2843
2 changed files with 17 additions and 18 deletions

View file

@ -293,8 +293,6 @@ BOOLEAN IPRegisterInterface(
IF->Index = ChosenIndex;
IPAddInterfaceRoute( IF );
/* Add interface to the global interface list */
TcpipInterlockedInsertTailList(&InterfaceListHead,
&IF->ListEntry,
@ -345,6 +343,21 @@ VOID IPUnregisterInterface(
}
VOID DefaultProtocolHandler(
PIP_INTERFACE Interface,
PIP_PACKET IPPacket)
/*
* FUNCTION: Default handler for Internet protocols
* ARGUMENTS:
* NTE = Pointer to net table entry which the packet was received on
* IPPacket = Pointer to an IP packet that was received
*/
{
TI_DbgPrint(MID_TRACE, ("[IF %x] Packet of unknown Internet protocol "
"discarded.\n", Interface));
}
VOID IPRegisterProtocol(
UINT ProtocolNumber,
IP_PROTOCOL_HANDLER Handler)
@ -362,22 +375,7 @@ VOID IPRegisterProtocol(
return;
}
ProtocolTable[ProtocolNumber] = Handler;
}
VOID DefaultProtocolHandler(
PIP_INTERFACE Interface,
PIP_PACKET IPPacket)
/*
* FUNCTION: Default handler for Internet protocols
* ARGUMENTS:
* NTE = Pointer to net table entry which the packet was received on
* IPPacket = Pointer to an IP packet that was received
*/
{
TI_DbgPrint(MID_TRACE, ("[IF %x] Packet of unknown Internet protocol "
"discarded.\n", Interface));
ProtocolTable[ProtocolNumber] = Handler ? Handler : DefaultProtocolHandler;
}

View file

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