Fix debug compilation for all platforms
This commit is contained in:
@@ -315,21 +315,18 @@ ArpL3Protocol::SendArpRequest (Ptr<const ArpCache> cache, Ipv4Address to)
|
||||
ArpHeader arp;
|
||||
// need to pick a source address; use routing implementation to select
|
||||
Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol> ();
|
||||
ipv4->GetInterfaceForDevice (cache->GetDevice ());
|
||||
NS_ASSERT (interface >= 0);
|
||||
Ptr<NetDevice> device = cache->GetDevice ();
|
||||
NS_ASSERT (device != 0);
|
||||
Ipv4Header header;
|
||||
header.SetDestination (to);
|
||||
Ptr<Packet> packet = Create<Packet> ();
|
||||
Ipv4Address source = ipv4->SelectSourceAddress (cache->GetDevice (), to, Ipv4InterfaceAddress::GLOBAL);
|
||||
Ipv4Address source = ipv4->SelectSourceAddress (device, to, Ipv4InterfaceAddress::GLOBAL);
|
||||
NS_LOG_LOGIC ("ARP: sending request from node "<<m_node->GetId ()<<
|
||||
" || src: " << cache->GetDevice ()->GetAddress () <<
|
||||
" / " << source <<
|
||||
" || dst: " << cache->GetDevice ()->GetBroadcast () <<
|
||||
" / " << to);
|
||||
arp.SetRequest (cache->GetDevice ()->GetAddress (), source,
|
||||
cache->GetDevice ()->GetBroadcast (), to);
|
||||
" || src: " << device->GetAddress () << " / " << source <<
|
||||
" || dst: " << device->GetBroadcast () << " / " << to);
|
||||
arp.SetRequest (device->GetAddress (), source, device->GetBroadcast (), to);
|
||||
packet->AddHeader (arp);
|
||||
cache->GetDevice ()->Send (packet, cache->GetDevice ()->GetBroadcast (), PROT_NUMBER);
|
||||
cache->GetDevice ()->Send (packet, device->GetBroadcast (), PROT_NUMBER);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user