|
|
ExternalRoutes& _ers | _ers |
inline ExternalRouteOrderPred (ExternalRoutes& ers)
| ExternalRouteOrderPred |
bool operator() (const OlsrTypes::ExternalID lhid,
const OlsrTypes::ExternalID rhid)
| operator() |
Functor to: implement collation order on external route maps.
12.6: The distance to the last-hop, as measured from the HNA message, is used as the current discriminator; this is what's specified in the RFC.
Because identifiers for these structures are normally passed around rather than the pointers themselves, it is necessary to use a functor.
Collation order: 1. Network destination, as per IPvXNet. 2. If not self originated, distance in ascending order.
Parameters:
lhid | the ID of the external route on the left-hand side. |
rhid | the ID of the external route on the right-hand side. |
Returns: true if lhid comes before rhid.