Minor fix to ICMP receive.

svn path=/trunk/; revision=13249
This commit is contained in:
Art Yerkes 2005-01-24 16:58:53 +00:00
parent 0523b42582
commit c396222f34

View file

@ -152,6 +152,10 @@ VOID IPDispatchProtocol(
/* Call the appropriate protocol handler */
(*ProtocolTable[Protocol])(Interface, IPPacket);
/* Special case for ICMP -- ICMP can be caught by a SOCK_RAW but also
* must be handled here. */
if( Protocol == IPPROTO_ICMP )
ICMPReceive( Interface, IPPacket );
}
@ -401,9 +405,6 @@ NTSTATUS IPStartup(PUNICODE_STRING RegistryPath)
for (i = 0; i < IP_PROTOCOL_TABLE_SIZE; i++)
IPRegisterProtocol(i, DefaultProtocolHandler);
/* Register network level protocol receive handlers */
IPRegisterProtocol(IPPROTO_ICMP, ICMPReceive);
/* Initialize NTE list and protecting lock */
InitializeListHead(&NetTableListHead);
TcpipInitializeSpinLock(&NetTableListLock);