Author: cgutman
Date: Sun Jul 31 22:32:18 2011
New Revision: 53010
URL:
http://svn.reactos.org/svn/reactos?rev=53010&view=rev
Log:
[IP]
- Add some temporary debug prints to troubleshoot some seemingly random bind failures
Modified:
trunk/reactos/lib/drivers/ip/transport/tcp/accept.c
trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c
Modified: trunk/reactos/lib/drivers/ip/transport/tcp/accept.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/transport/t…
==============================================================================
--- trunk/reactos/lib/drivers/ip/transport/tcp/accept.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/transport/tcp/accept.c [iso-8859-1] Sun Jul 31 22:32:18
2011
@@ -88,6 +88,8 @@
Status = TCPTranslateError(OskitTCPBind(Connection,
&AddressToBind,
sizeof(AddressToBind)));
+
+ DbgPrint("Listen - Explicit bind on port %d returned 0x%x\n",
Connection->AddressFile->Port, Status);
}
else
{
@@ -108,6 +110,7 @@
{
/* Allocate the port in the port bitmap */
Connection->AddressFile->Port =
TCPAllocatePort(LocalAddress.Address[0].Address[0].sin_port);
+ DbgPrint("Listen - Implicit bind on port %d\n",
Connection->AddressFile->Port);
/* This should never fail */
ASSERT(Connection->AddressFile->Port != 0xFFFF);
Modified: trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/transport/t…
==============================================================================
--- trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] Sun Jul 31 22:32:18
2011
@@ -773,6 +773,8 @@
Status = TCPTranslateError(OskitTCPBind(Connection,
&AddressToBind,
sizeof(AddressToBind)));
+
+ DbgPrint("Connect - Explicit bind on port %d returned 0x%x\n",
Connection->AddressFile->Port, Status);
}
else
{
@@ -803,6 +805,7 @@
{
/* Allocate the port in the port bitmap */
Connection->AddressFile->Port =
TCPAllocatePort(LocalAddress.Address[0].Address[0].sin_port);
+ DbgPrint("Connect - Implicit bind on port %d\n",
Connection->AddressFile->Port);
/* This should never fail */
ASSERT(Connection->AddressFile->Port != 0xFFFF);