From bba1cb3859313d4244dc3b43a5565d05ec2d05de Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 14 Sep 2007 15:46:04 -0700 Subject: [PATCH] remove local address setting from UdpSocket::Connect() --- src/internet-node/udp-socket.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/internet-node/udp-socket.cc b/src/internet-node/udp-socket.cc index 9212614fa..9f4f6744d 100644 --- a/src/internet-node/udp-socket.cc +++ b/src/internet-node/udp-socket.cc @@ -183,19 +183,6 @@ UdpSocket::Connect(const Address & address) NotifyConnectionSucceeded (); m_connected = true; - NS_LOG_LOGIC ("Updating local address"); - - uint32_t localIfIndex; - - Ptr ipv4 = m_node->QueryInterface (Ipv4::iid); - - if (ipv4->GetIfIndexForDestination (m_defaultAddress, localIfIndex)) - { - m_endPoint->SetLocalAddress (ipv4->GetAddress(localIfIndex)); - } - - NS_LOG_LOGIC ("Local address is " << m_endPoint->GetLocalAddress()); - return 0; }