src/internet-stack/ipv4-raw-socket-impl.cc
changeset 4372 d99061f1167c
parent 3820 c04ecfdce1ef
child 4375 db81fdcb06e7
--- a/src/internet-stack/ipv4-raw-socket-impl.cc	Wed Apr 08 13:35:02 2009 -0700
+++ b/src/internet-stack/ipv4-raw-socket-impl.cc	Wed Apr 08 13:35:34 2009 -0700
@@ -170,10 +170,10 @@
   InetSocketAddress ad = InetSocketAddress::ConvertFrom (toAddress);
   Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol> ();
   Ipv4Address dst = ad.GetIpv4 ();
-  uint32_t localIfIndex;
-  if (ipv4->GetIfIndexForDestination(dst, localIfIndex))
+  uint32_t localInterface;
+  if (ipv4->GetInterfaceForDestination(dst, localInterface))
     {
-      ipv4->Send (p, ipv4->GetAddress (localIfIndex), dst, m_protocol);
+      ipv4->Send (p, ipv4->GetAddress (localInterface), dst, m_protocol);
     }
   else
     {