|
|
| 1226 |
/* try to find the cache */ |
1226 |
/* try to find the cache */ |
| 1227 |
cache = FindCache (device); |
1227 |
cache = FindCache (device); |
| 1228 |
} |
1228 |
} |
| 1229 |
|
1229 |
if (cache) |
| 1230 |
return cache->Lookup (dst); |
1230 |
{ |
|
|
1231 |
NdiscCache::Entry* entry = cache->Lookup (dst); |
| 1232 |
if (entry && !(entry->IsIncomplete() || entry->IsProbe())) |
| 1233 |
{ |
| 1234 |
*hardwareDestination = entry->GetMacAddress (); |
| 1235 |
return true; |
| 1236 |
} |
| 1237 |
} |
| 1238 |
return false; |
| 1231 |
} |
1239 |
} |
| 1232 |
|
1240 |
|
| 1233 |
bool Icmpv6L4Protocol::Lookup (Ptr<Packet> p, Ipv6Address dst, Ptr<NetDevice> device, Ptr<NdiscCache> cache, Address* hardwareDestination) |
1241 |
bool Icmpv6L4Protocol::Lookup (Ptr<Packet> p, Ipv6Address dst, Ptr<NetDevice> device, Ptr<NdiscCache> cache, Address* hardwareDestination) |
|
|
| 1239 |
/* try to find the cache */ |
1247 |
/* try to find the cache */ |
| 1240 |
cache = FindCache (device); |
1248 |
cache = FindCache (device); |
| 1241 |
} |
1249 |
} |
|
|
1250 |
if (!cache) |
| 1251 |
{ |
| 1252 |
return false; |
| 1253 |
} |
| 1242 |
|
1254 |
|
| 1243 |
NdiscCache::Entry* entry = cache->Lookup (dst); |
1255 |
NdiscCache::Entry* entry = cache->Lookup (dst); |
| 1244 |
if (entry) |
1256 |
if (entry) |