diff -r 695c6211cb82 src/internet-node/udp-socket.cc --- a/src/internet-node/udp-socket.cc Sun Apr 06 06:24:33 2008 +0200 +++ b/src/internet-node/udp-socket.cc Tue Apr 15 10:12:41 2008 +0800 @@ -299,7 +299,8 @@ m_endPoint->GetLocalPort (), port); NotifyDataSent (p->GetSize ()); } - NS_LOG_LOGIC ("Limited broadcast end."); + NS_LOG_LOGIC ("Limited broadcast end."); + return p->GetSize(); } else if (ipv4->GetIfIndexForDestination(dest, localIfIndex)) { @@ -307,7 +308,7 @@ m_udp->Send (p, ipv4->GetAddress (localIfIndex), dest, m_endPoint->GetLocalPort (), port); NotifyDataSent (p->GetSize ()); - return 0; + return p->GetSize();; } else {