--- a/src/internet-stack/ipv4-raw-socket-impl.cc Wed Apr 07 16:42:47 2010 +0200 +++ a/src/internet-stack/ipv4-raw-socket-impl.cc Wed Apr 07 16:45:22 2010 +0200 @@ -184,10 +184,14 @@ { NS_LOG_LOGIC ("Route exists"); ipv4->Send (p, route->GetSource (), dst, m_protocol, route); + NotifyDataSent (p->GetSize ()); + NotifySend (GetTxAvailable ()); + return p->GetSize(); } else { NS_LOG_DEBUG ("dropped because no outgoing route."); + return -1; } } return 0; --- a/src/internet-stack/udp-socket-impl.cc Wed Apr 07 16:42:47 2010 +0200 +++ a/src/internet-stack/udp-socket-impl.cc Wed Apr 07 16:45:22 2010 +0200 @@ -414,6 +414,9 @@ { m_udp->Send(p->Copy (), m_endPoint->GetLocalAddress(), dest, m_endPoint->GetLocalPort(), port, 0); + NotifyDataSent (p->GetSize ()); + NotifySend (GetTxAvailable ()); + return p->GetSize(); } else if (ipv4->GetRoutingProtocol () != 0) {