mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 06:06:27 +00:00
- Don't shrink the ICMP packet that we receive
- Now we reply properly with large packets svn path=/trunk/; revision=40310
This commit is contained in:
parent
c9aae814df
commit
edf6d65008
|
@ -226,17 +226,12 @@ VOID ICMPReply(
|
|||
* notify him of the problem
|
||||
*/
|
||||
{
|
||||
UINT DataSize, PayloadSize;
|
||||
UINT DataSize;
|
||||
IP_PACKET NewPacket = *IPPacket;
|
||||
|
||||
TI_DbgPrint(DEBUG_ICMP, ("Called. Type (%d) Code (%d).\n", Type, Code));
|
||||
|
||||
DataSize = IPPacket->TotalSize - IPPacket->HeaderSize;
|
||||
PayloadSize = DataSize - sizeof(ICMP_HEADER);
|
||||
if ((PayloadSize) > 576) {
|
||||
PayloadSize = 576;
|
||||
DataSize = PayloadSize + sizeof(ICMP_HEADER);
|
||||
}
|
||||
|
||||
if( !PrepareICMPPacket(Interface, &NewPacket, &IPPacket->SrcAddr,
|
||||
IPPacket->Data, DataSize) ) return;
|
||||
|
|
Loading…
Reference in a new issue