equal
deleted
inserted
replaced
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 " << |