TopologyEntry Class Reference

A topology control record (TC). More...

#include <topology.hh>

List of all members.

Public Member Functions

 TopologyEntry (EventLoop &ev, TopologyManager *parent, OlsrTypes::TopologyID id, const IPv4 &dest, const IPv4 &lasthop, const uint16_t distance, const uint16_t seqno, const TimeVal &vtime)
OlsrTypes::TopologyID id () const
IPv4 destination () const
IPv4 lasthop () const
uint16_t distance () const
uint16_t seqno () const
void set_distance (const uint16_t d)
TimeVal time_remaining () const
void update_timer (const TimeVal &vtime)
 Update the TopologyEntry's expiry timer.
void event_dead ()
 Callback method to: delete a dying TopologyEntry.

Private Attributes

OlsrTypes::TopologyID _id
 unique identifier.
IPv4 _destination
 destination address.
IPv4 _lasthop
 The last hop to reach _dest.
uint16_t _distance
 The number of hops from the origin to the neighbor advertised in this TC entry.
uint16_t _seqno
 The ANSN of this entry.
XorpTimer _expiry_timer
 The time at which this entry will expire.

Detailed Description

A topology control record (TC).

Member Function Documentation

TimeVal TopologyEntry::time_remaining ( ) const [inline]
the amount of time remaining until this TC entry expires.
void TopologyEntry::update_timer ( const TimeVal vtime)

Update the TopologyEntry's expiry timer.

vtimethe new value of the expiry timer.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations