|
318 |
if (result) |
318 |
if (result) |
319 |
{ |
319 |
{ |
320 |
NS_LOG_LOGIC ("Add packet " << p->GetUid() << " to queue. Protocol " << (uint16_t) header.GetProtocol ()); |
320 |
NS_LOG_LOGIC ("Add packet " << p->GetUid() << " to queue. Protocol " << (uint16_t) header.GetProtocol ()); |
321 |
SendRequest (header.GetDestination ()); |
321 |
RoutingTableEntry rt; |
|
|
322 |
bool result = m_routingTable.LookupRoute(header.GetDestination (), rt); |
323 |
if(!result || ((rt.GetFlag() != IN_SEARCH) && result)) |
324 |
{ |
325 |
NS_LOG_LOGIC ("Send RREQ to" <<header.GetDestination ()); |
326 |
SendRequest (header.GetDestination ()); |
327 |
} |
322 |
} |
328 |
} |
323 |
} |
329 |
} |
324 |
|
330 |
|