Apply patch to fix bug 364
authorCraig Dowell <craigdo@ee.washington.edu>
Thu, 23 Oct 2008 11:51:15 -0700
changeset 3776 362d7e1c12a6
parent 3775 ca168a0544f2
child 3777 e676513eacbd
child 3790 2c655e67f7b1
Apply patch to fix bug 364
src/internet-stack/udp-socket-impl.cc
src/node/packet-socket.cc
--- a/src/internet-stack/udp-socket-impl.cc	Thu Oct 23 11:50:45 2008 -0700
+++ b/src/internet-stack/udp-socket-impl.cc	Thu Oct 23 11:51:15 2008 -0700
@@ -345,6 +345,7 @@
           m_udp->Send (p->Copy (), addri, bcast,
                        m_endPoint->GetLocalPort (), port);
           NotifyDataSent (p->GetSize ());
+          NotifySend (GetTxAvailable ());
         }
       NS_LOG_LOGIC ("Limited broadcast end.");
       return p->GetSize();
@@ -355,6 +356,7 @@
       m_udp->Send (p->Copy (), ipv4->GetAddress (localIfIndex), dest,
 		   m_endPoint->GetLocalPort (), port);
       NotifyDataSent (p->GetSize ());
+      NotifySend (GetTxAvailable ());
       return p->GetSize();;
     }
   else
--- a/src/node/packet-socket.cc	Thu Oct 23 11:50:45 2008 -0700
+++ b/src/node/packet-socket.cc	Thu Oct 23 11:51:15 2008 -0700
@@ -329,6 +329,7 @@
   if (!error)
     {
       NotifyDataSent (p->GetSize ());
+      NotifySend (GetTxAvailable ());
     }
 
   if (error)