From 45c6e9c9d00c01587493e63bf163ebcaa1a319da Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Wed, 7 Mar 2012 17:14:41 +0100 Subject: [PATCH] fixed bug 1283: PacketSocket::SendTo should return number of bytes --- src/network/utils/packet-socket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/utils/packet-socket.cc b/src/network/utils/packet-socket.cc index 8f2edf411..876ef77e5 100644 --- a/src/network/utils/packet-socket.cc +++ b/src/network/utils/packet-socket.cc @@ -362,7 +362,7 @@ PacketSocket::SendTo (Ptr p, uint32_t flags, const Address &address) } else { - return 0; + return p->GetSize (); } }