mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
Minor fix to ICMP receive.
svn path=/trunk/; revision=13249
This commit is contained in:
parent
0523b42582
commit
c396222f34
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue