Author: cgutman
Date: Thu Jul 7 20:02:52 2011
New Revision: 52559
URL:
http://svn.reactos.org/svn/reactos?rev=52559&view=rev
Log:
[IP]
- Return the amount of data sent in XXXSendDatagram() functions
- Fixes send() and sendto() return values for datagram sockets (bug exposed by the AFD
send user-mode IRP rewrite)
Modified:
trunk/reactos/lib/drivers/ip/network/icmp.c
trunk/reactos/lib/drivers/ip/transport/rawip/rawip.c
trunk/reactos/lib/drivers/ip/transport/udp/udp.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] Thu Jul 7 20:02:52 2011
@@ -228,6 +228,8 @@
FreeNdisPacket(Packet.NdisPacket);
return Status;
}
+
+ *DataUsed = DataSize;
TI_DbgPrint(MID_TRACE,("Leaving\n"));
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] Thu Jul 7 20:02:52
2011
@@ -261,6 +261,8 @@
FreeNdisPacket(Packet.NdisPacket);
return Status;
}
+
+ *DataUsed = DataSize;
TI_DbgPrint(MID_TRACE,("Leaving\n"));
Modified: trunk/reactos/lib/drivers/ip/transport/udp/udp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/transport/u…
==============================================================================
--- trunk/reactos/lib/drivers/ip/transport/udp/udp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/transport/udp/udp.c [iso-8859-1] Thu Jul 7 20:02:52
2011
@@ -234,6 +234,8 @@
FreeNdisPacket(Packet.NdisPacket);
return Status;
}
+
+ *DataUsed = DataSize;
return STATUS_SUCCESS;
}