|
xorp
|
A topology control record (TC). More...
#include <topology.hh>
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 | |
| EventLoop & | _ev |
| TopologyManager * | _parent |
| 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. | |
A topology control record (TC).
| TimeVal TopologyEntry::time_remaining | ( | ) | const [inline] |
| void TopologyEntry::update_timer | ( | const TimeVal & | vtime | ) |