|
| ||||||||||||||||
| explicit ExternalRoute (ExternalRoutes& parent,
EventLoop& ev,
const OlsrTypes::ExternalID erid,
const IPv4Net& dest,
const IPv4& lasthop,
const uint16_t distance,
const TimeVal& expiry_time)
| ExternalRoute |
Constructor for a external route learned from another OLSR peer.
| explicit ExternalRoute (ExternalRoutes& parent,
EventLoop& ev,
const OlsrTypes::ExternalID erid,
const IPv4Net& dest)
| ExternalRoute |
Constructor for a external route originated by this node.
| ~ExternalRoute ()
| ~ExternalRoute |
[virtual]
| inline OlsrTypes::ExternalID id ()
| id |
[const]
Returns: the ID of the external route.
| inline bool is_self_originated ()
| is_self_originated |
[const]
Returns: true if we are the node which originated this route.
| inline IPv4Net dest ()
| dest |
[const]
Returns: the destination of this route.
| inline IPv4 lasthop ()
| lasthop |
[const]
Returns: the node in the OLSR topology which advertised the destination which this route points to.
| inline uint16_t distance ()
| distance |
[const]
Returns: the number of hops between this node and the last hop.
| inline void set_distance (const uint16_t distance)
| set_distance |
Update the distance in hops between this node and the last hop.
| inline TimeVal time_remaining ()
| time_remaining |
[const]
Returns: the amount of time remaining until this HNA entry expires.
| void update_timer (const TimeVal& expiry_time)
| update_timer |
Schedule or re-schedule the expiry timer on this route entry.
Parameters:
| expiry_time | The new expiry time of the route entry. |
| void event_expired ()
| event_expired |
Callback method to: request that the parent delete this HNA derived external route, as it has now expired.