Author: cgutman
Date: Wed Apr 1 07:08:51 2009
New Revision: 40310
URL:
http://svn.reactos.org/svn/reactos?rev=40310&view=rev
Log:
- Don't shrink the ICMP packet that we receive
- Now we reply properly with large packets
Modified:
trunk/reactos/lib/drivers/ip/network/icmp.c
Modified: trunk/reactos/lib/drivers/ip/network/icmp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/network/icm…
==============================================================================
--- trunk/reactos/lib/drivers/ip/network/icmp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/network/icmp.c [iso-8859-1] Wed Apr 1 07:08:51 2009
@@ -226,17 +226,12 @@
* 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;