Author: cgutman
Date: Wed Mar 25 05:10:49 2009
New Revision: 40214
URL:
http://svn.reactos.org/svn/reactos?rev=40214&view=rev
Log:
- Return STATUS_NETWORK_UNREACHABLE if we can't get a route to the remote address
Modified:
trunk/reactos/lib/drivers/ip/transport/rawip/rawip.c
trunk/reactos/lib/drivers/ip/transport/tcp/tcp.c
Modified: trunk/reactos/lib/drivers/ip/transport/rawip/rawip.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/transport/r…
==============================================================================
--- trunk/reactos/lib/drivers/ip/transport/rawip/rawip.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/transport/rawip/rawip.c [iso-8859-1] Wed Mar 25 05:10:49
2009
@@ -227,7 +227,7 @@
if(!(NCE = RouteGetRouteToDestination( &RemoteAddress ))) {
FreeNdisPacket(Packet.NdisPacket);
- return STATUS_UNSUCCESSFUL;
+ return STATUS_NETWORK_UNREACHABLE;
}
TI_DbgPrint(MID_TRACE,("About to send datagram\n"));
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] Wed Mar 25 05:10:49
2009
@@ -526,6 +526,9 @@
case OSK_EAGAIN: Status = STATUS_PENDING; break;
default: Status = STATUS_INVALID_CONNECTION; break;
}
+
+ if (Status != STATUS_SUCCESS)
+ DbgPrint("%d -> %x\n", OskitError, Status);
TI_DbgPrint(DEBUG_TCP,("Error %d -> %x\n", OskitError, Status));
return Status;