Bugzilla – Attachment #1763: new patch for bug #1739
Bugs fixed
----------
- Bug 1739 - The endpoint is not deallocated for UDP sockets
- Bug 1786 - os << int64x64_t prints un-normalized fractional values
- Bug 1821 - Setting an interface to Down state will cause various asserts in IPv6
- Bug 1837 - AODV crashes when using multiple interfaces
void Destroy6 (void);
/**
* \brief Deallocate m_endPoint
* \brief Deallocate m_endPoint and m_endPoint6
*/
void DeallocateEndPoint (void);
m_endPoint6 = 0;
}
/* Deallocate the end point and cancel all the timers */
void
UdpSocketImpl::DeallocateEndPoint (void)
{
if (m_endPoint != 0)
m_endPoint->SetDestroyCallback (MakeNullCallback<void> ());
m_udp->DeAllocate (m_endPoint);
m_endPoint = 0;
if (m_endPoint6 != 0)
m_endPoint6->SetDestroyCallback (MakeNullCallback<void> ());
m_udp->DeAllocate (m_endPoint6);
int
UdpSocketImpl::FinishBind (void)
m_shutdownRecv = true;
m_shutdownSend = true;
DeallocateEndPoint ();
return 0;
* \brief Send a packet
* \param p packet
* \returns 0 on success, -1 on failure