src/internet-node/arp-l3-protocol.cc
changeset 2987 4fe951be604c
parent 2983 e3a416fe9dd5
parent 2919 d2d179640630
child 3146 98629e087bb1
equal deleted inserted replaced
2986:484e5030c441 2987:4fe951be604c
   105   NS_LOG_LOGIC ("ARP: received "<< (arp.IsRequest ()? "request" : "reply") <<
   105   NS_LOG_LOGIC ("ARP: received "<< (arp.IsRequest ()? "request" : "reply") <<
   106             " node="<<m_node->GetId ()<<", got request from " <<
   106             " node="<<m_node->GetId ()<<", got request from " <<
   107             arp.GetSourceIpv4Address () << " for address " <<
   107             arp.GetSourceIpv4Address () << " for address " <<
   108             arp.GetDestinationIpv4Address () << "; we have address " <<
   108             arp.GetDestinationIpv4Address () << "; we have address " <<
   109             cache->GetInterface ()->GetAddress ());
   109             cache->GetInterface ()->GetAddress ());
       
   110 
       
   111   /**
       
   112    * Note: we do not update the ARP cache when we receive an ARP request
       
   113    * from an unknown node. See bug #107
       
   114    */
   110 
   115 
   111   if (arp.IsRequest () && 
   116   if (arp.IsRequest () && 
   112       arp.GetDestinationIpv4Address () == cache->GetInterface ()->GetAddress ()) 
   117       arp.GetDestinationIpv4Address () == cache->GetInterface ()->GetAddress ()) 
   113     {
   118     {
   114       NS_LOG_LOGIC ("node="<<m_node->GetId () <<", got request from " << 
   119       NS_LOG_LOGIC ("node="<<m_node->GetId () <<", got request from " <<