Bug 2255 - Ipv6RawSocket does not call data sent callbacks.
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Sat, 09 Jan 2016 15:28:21 +0100
changeset 11811 373f8d31c587
parent 11810 a7f3de5f353c
child 11812 9382700d58cf
Bug 2255 - Ipv6RawSocket does not call data sent callbacks.
RELEASE_NOTES
src/internet/model/ipv6-raw-socket-impl.cc
--- a/RELEASE_NOTES	Sat Jan 09 15:27:52 2016 +0100
+++ b/RELEASE_NOTES	Sat Jan 09 15:28:21 2016 +0100
@@ -78,6 +78,7 @@
 - Bug 2243 - TCP Socket Fork() fails to copy some parameters, causing connections to close prematurely on retransmit
 - Bug 2246 - Some DSR LogComponents and classes are not defined in a unique way.
 - Bug 2254 - Ipv[4,6]RawSocket can return the wrong number of bytes sent.
+- Bug 2255 - Ipv6RawSocket does not call data sent callbacks.
 
 Known issues
 ------------
--- a/src/internet/model/ipv6-raw-socket-impl.cc	Sat Jan 09 15:27:52 2016 +0100
+++ b/src/internet/model/ipv6-raw-socket-impl.cc	Sat Jan 09 15:28:21 2016 +0100
@@ -255,6 +255,8 @@
               ipv6->Send (p, m_src, dst, m_protocol, route);
             }
           // Return only payload size (as Linux does).
+          NotifyDataSent (pktSize);
+          NotifySend (GetTxAvailable ());
           return pktSize - hdr.GetSerializedSize ();
         }
       else