# HG changeset patch # User Fabian Mauchle # Date 1258643525 -3600 # Node ID fd4690bee43a921cb209f5ac91cbe411ff093234 # Parent 2abe024e7099d8dc848d00f738af7b21f4e0b815 Udp bug: Source Address is not set to bound address diff -r 2abe024e7099 -r fd4690bee43a src/internet-stack/udp-socket-impl.cc --- a/src/internet-stack/udp-socket-impl.cc Wed Oct 21 17:19:03 2009 -0700 +++ b/src/internet-stack/udp-socket-impl.cc Thu Nov 19 16:12:05 2009 +0100 @@ -399,6 +399,11 @@ NS_LOG_LOGIC ("Limited broadcast end."); return p->GetSize(); } + else if (m_endPoint->GetLocalAddress() != Ipv4Address::GetAny()) + { + m_udp->Send(p->Copy (), m_endPoint->GetLocalAddress(), dest, + m_endPoint->GetLocalPort(), port, 0); + } else if (ipv4->GetRoutingProtocol () != 0) { Ipv4Header header;