equal
deleted
inserted
replaced
287 NS_LOG_LOGIC ("node="<<m_node->GetId ()<< |
287 NS_LOG_LOGIC ("node="<<m_node->GetId ()<< |
288 ", alive entry for " << destination << " expired -- send arp request"); |
288 ", alive entry for " << destination << " expired -- send arp request"); |
289 entry->MarkWaitReply (packet); |
289 entry->MarkWaitReply (packet); |
290 Simulator::Schedule (Time (MilliSeconds (m_requestJitter->GetValue ())), &ArpL3Protocol::SendArpRequest, this, cache, destination); |
290 Simulator::Schedule (Time (MilliSeconds (m_requestJitter->GetValue ())), &ArpL3Protocol::SendArpRequest, this, cache, destination); |
291 } |
291 } |
292 else if (entry->IsWaitReply ()) |
292 else |
293 { |
293 { |
294 NS_FATAL_ERROR ("Test for possibly unreachable code-- please file a bug report, with a test case, if this is ever hit"); |
294 NS_FATAL_ERROR ("Test for possibly unreachable code-- please file a bug report, with a test case, if this is ever hit"); |
295 } |
295 } |
296 } |
296 } |
297 else |
297 else |
315 ", wait reply for " << destination << " valid -- drop previous"); |
315 ", wait reply for " << destination << " valid -- drop previous"); |
316 if (!entry->UpdateWaitReply (packet)) |
316 if (!entry->UpdateWaitReply (packet)) |
317 { |
317 { |
318 m_dropTrace (packet); |
318 m_dropTrace (packet); |
319 } |
319 } |
|
320 } |
|
321 else if (entry-> IsPermanent ()) |
|
322 { |
|
323 NS_LOG_LOGIC ("node="<<m_node->GetId ()<< |
|
324 ", permanent for " << destination << "valid -- send"); |
|
325 *hardwareDestination = entry->GetMacAddress (); |
|
326 return true; |
|
327 } |
|
328 else |
|
329 { |
|
330 NS_LOG_LOGIC ("Test for possibly unreachable code-- please file a bug report, with a test case, if this is ever hit"); |
320 } |
331 } |
321 } |
332 } |
322 } |
333 } |
323 else |
334 else |
324 { |
335 { |