Author: tfaber
Date: Sat Feb 11 11:46:38 2017
New Revision: 73772
URL:
http://svn.reactos.org/svn/reactos?rev=73772&view=rev
Log:
[IP]
- Print some debugging information when hitting 'p->tot_len == p->len'
assertion in TCPSendDataCallback.
CORE-10715
Modified:
trunk/reactos/sdk/lib/drivers/ip/transport/tcp/if.c
Modified: trunk/reactos/sdk/lib/drivers/ip/transport/tcp/if.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/ip/transpo…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/ip/transport/tcp/if.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/ip/transport/tcp/if.c [iso-8859-1] Sat Feb 11 11:46:38
2017
@@ -49,8 +49,15 @@
GetDataPtr(Packet.NdisPacket, 0, (PCHAR*)&Packet.Header, &Packet.TotalSize);
Packet.MappedHeader = TRUE;
- ASSERT(p->tot_len == p->len);
- ASSERT(Packet.TotalSize == p->len);
+ if (p->tot_len != p->len ||
+ Packet.TotalSize != p->len)
+ {
+ TI_DbgPrint(MIN_TRACE,
+ ("TCPSendDataCallback tot_len = %u, len = %u, TotalSize =
%u\n",
+ p->tot_len, p->len, Packet.TotalSize));
+ ASSERT(p->tot_len == p->len);
+ ASSERT(Packet.TotalSize == p->len);
+ }
RtlCopyMemory(Packet.Header, p->payload, p->len);