src/internet-stack/arp-l3-protocol.cc
changeset 3499 a18520551cdf
parent 3462 93e991211868
child 3548 e5ab96db540e
--- a/src/internet-stack/arp-l3-protocol.cc	Tue Jul 29 15:36:41 2008 -0400
+++ b/src/internet-stack/arp-l3-protocol.cc	Wed Jul 30 06:30:42 2008 -0700
@@ -95,6 +95,7 @@
   cache->SetDevice (device, interface);
   NS_ASSERT (device->IsBroadcast ());
   device->SetLinkChangeCallback (MakeCallback (&ArpCache::Flush, cache));
+  cache->SetArpRequestCallback (MakeCallback (&ArpL3Protocol::SendArpRequest, this));
   m_cacheList.push_back (cache);
   return cache;
 }
@@ -218,16 +219,7 @@
             } 
           else if (entry->IsWaitReply ()) 
             {
-              NS_LOG_LOGIC ("node="<<m_node->GetId ()<<
-                        ", wait reply for " << destination << " expired -- drop");
-              entry->MarkDead ();
-              Ptr<Packet> pending = entry->DequeuePending();
-              while (pending != 0)
-                {
-                  m_dropTrace (pending);
-                  pending = entry->DequeuePending();
-                }
-              m_dropTrace (packet);
+              NS_FATAL_ERROR ("Test for possibly unreachable code-- please file a bug report if this is ever hit");
             }
         } 
       else