|
|
Neighborhood* _nh | _nh |
inline LinkOrderPred (Neighborhood* nh)
| LinkOrderPred |
bool operator() (const OlsrTypes::LogicalLinkID lhid,
const OlsrTypes::LogicalLinkID rhid)
| operator() |
Determine if the left-hand link comes before the the right-hand link.
Collation order: symmetric, most recently updated, highest ID.
TODO: This is a candidate for moving into class Link. TODO: ETX metrics, collation order will be: Anything !is_pending is above anything is_pending Then order in ascending near_etx(). Then order in ascending far_etx(). A change in the best link means a change in routes, unless we dampen flap somehow.
Returns: true if link lhs is better than link rhs.