|
2451 |
#ifdef NS3_LOG_ENABLE |
2451 |
#ifdef NS3_LOG_ENABLE |
2452 |
int statusBefore = nb_tuple->status; |
2452 |
int statusBefore = nb_tuple->status; |
2453 |
#endif // NS3_LOG_ENABLE |
2453 |
#endif // NS3_LOG_ENABLE |
2454 |
if (tuple.symTime >= Simulator::Now ()) |
2454 |
|
|
|
2455 |
bool hasSymmetricLink = false; |
2456 |
|
2457 |
const LinkSet &linkSet = m_state.GetLinks (); |
2458 |
for (LinkSet::const_iterator it = linkSet.begin(); |
2459 |
it != linkSet.end(); it++) |
2460 |
{ |
2461 |
const LinkTuple &link_tuple = *it; |
2462 |
if (GetMainAddress (link_tuple.neighborIfaceAddr) == nb_tuple->neighborMainAddr |
2463 |
&& link_tuple.symTime >= Simulator::Now ()) |
2464 |
{ |
2465 |
hasSymmetricLink = true; |
2466 |
break; |
2467 |
} |
2468 |
} |
2469 |
|
2470 |
if (hasSymmetricLink) |
2455 |
{ |
2471 |
{ |
2456 |
nb_tuple->status = NeighborTuple::STATUS_SYM; |
2472 |
nb_tuple->status = NeighborTuple::STATUS_SYM; |
2457 |
NS_LOG_DEBUG (*nb_tuple << "->status = STATUS_SYM; changed:" |
2473 |
NS_LOG_DEBUG (*nb_tuple << "->status = STATUS_SYM; changed:" |