struct ExternalRouteOrderPred

Orders a sequence of OlsrTypes::ExternalID in descending order of preference for route selection. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Members


Detailed Description

Model of StrictWeakOrdering.

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:

lhidthe ID of the external route on the left-hand side.
rhidthe ID of the external route on the right-hand side.

Returns: true if lhid comes before rhid.


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:15 2009, using kdoc 2.0a54+XORP.