mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Minor fix to ICMP receive.
svn path=/trunk/; revision=13249
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user