src/internet-stack/udp-socket-impl.cc
changeset 4372 d99061f1167c
parent 3956 0339a8ad5983
child 4375 db81fdcb06e7
--- a/src/internet-stack/udp-socket-impl.cc	Wed Apr 08 13:35:02 2009 -0700
+++ b/src/internet-stack/udp-socket-impl.cc	Wed Apr 08 13:35:34 2009 -0700
@@ -308,7 +308,7 @@
       return -1;
     }
 
-  uint32_t localIfIndex;
+  uint32_t localInterface;
   Ptr<Ipv4> ipv4 = m_node->GetObject<Ipv4> ();
 
   // Locally override the IP TTL for this socket
@@ -389,10 +389,10 @@
       NS_LOG_LOGIC ("Limited broadcast end.");
       return p->GetSize();
     }
-  else if (ipv4->GetIfIndexForDestination(dest, localIfIndex))
+  else if (ipv4->GetInterfaceForDestination(dest, localInterface))
     {
       NS_LOG_LOGIC ("Route exists");
-      m_udp->Send (p->Copy (), ipv4->GetAddress (localIfIndex), dest,
+      m_udp->Send (p->Copy (), ipv4->GetAddress (localInterface), dest,
 		   m_endPoint->GetLocalPort (), port);
       NotifyDataSent (p->GetSize ());
       NotifySend (GetTxAvailable ());