Bug 2255 - Ipv6RawSocket does not call data sent callbacks.

This commit is contained in:
Tommaso Pecorella
2016-01-09 15:28:21 +01:00
parent 5fcbe1f353
commit 27b963750e
2 changed files with 3 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ Bugs fixed
- 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
------------

View File

@@ -255,6 +255,8 @@ int Ipv6RawSocketImpl::SendTo (Ptr<Packet> p, uint32_t flags, const Address& toA
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