src/internet-stack/arp-ipv4-interface.cc
changeset 4375 db81fdcb06e7
parent 3841 1e7abf5fca79
--- a/src/internet-stack/arp-ipv4-interface.cc	Wed Apr 08 22:32:44 2009 -0700
+++ b/src/internet-stack/arp-ipv4-interface.cc	Sun Apr 12 22:13:49 2009 -0700
@@ -106,7 +106,8 @@
   NS_LOG_FUNCTION (this << p << dest);
 
   NS_ASSERT (GetDevice () != 0);
-  if (dest == GetAddress ())
+  // XXX multi-address case
+  if (dest == GetAddress (0).GetLocal ())
     {
       Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol> ();
         
@@ -124,9 +125,9 @@
         m_node->GetObject<ArpL3Protocol> ();
       Address hardwareDestination;
       bool found;
-      
+      // XXX multi-address case
       if (dest.IsBroadcast () || 
-          dest.IsSubnetDirectedBroadcast (GetNetworkMask ()) )
+          dest.IsSubnetDirectedBroadcast (GetAddress (0).GetMask ()) )
         {
           NS_LOG_LOGIC ("IsBroadcast");
           hardwareDestination = GetDevice ()->GetBroadcast ();