[internet] Arp logging: label with request or reply properly
This commit is contained in:
@@ -106,6 +106,7 @@ Bugs fixed
|
||||
- Bug 2500 - Ipv[4,6]RawSocket ignores IpTtl tag
|
||||
- Bug 2507 - ConfigStore RawTextConfigLoad doesn't reset stream error state
|
||||
- Bug 2508 - Duplicate of bug 2507
|
||||
- No BugId - Arp logging: label with request or reply properly
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
@@ -186,10 +186,13 @@ ArpL3Protocol::Receive (Ptr<NetDevice> device, Ptr<const Packet> p, uint16_t pro
|
||||
NS_LOG_LOGIC ("ARP: Cannot remove ARP header");
|
||||
return;
|
||||
}
|
||||
NS_LOG_LOGIC ("ARP: received "<< (arp.IsRequest () ? "request" : "reply") <<
|
||||
" node="<<m_node->GetId ()<<", got request from " <<
|
||||
arp.GetSourceIpv4Address () << " for address " <<
|
||||
arp.GetDestinationIpv4Address () << "; we have addresses: ");
|
||||
NS_LOG_LOGIC ("ARP: received " << (arp.IsRequest () ? "request" : "reply") <<
|
||||
" node=" << m_node->GetId () <<
|
||||
", got " <<
|
||||
(arp.IsRequest () ? "request" : "reply") <<
|
||||
" from " << arp.GetSourceIpv4Address () <<
|
||||
" for address " << arp.GetDestinationIpv4Address () <<
|
||||
"; we have addresses: ");
|
||||
for (uint32_t i = 0; i < cache->GetInterface ()->GetNAddresses (); i++)
|
||||
{
|
||||
NS_LOG_LOGIC (cache->GetInterface ()->GetAddress (i).GetLocal () << ", ");
|
||||
|
||||
Reference in New Issue
Block a user