|
|
There is one MidEntry per interface address advertised by an OLSR peer. As such, a primary address may be associated with multiple MID entries.
MidEntry (EventLoop& ev, TopologyManager* parent,
const OlsrTypes::MidEntryID id, const IPv4& iface_addr,
const IPv4& main_addr, const uint16_t distance,
const TimeVal& vtime)
| MidEntry |
inline OlsrTypes::MidEntryID id ()
| id |
[const]
inline IPv4 iface_addr ()
| iface_addr |
[const]
inline IPv4 main_addr ()
| main_addr |
[const]
inline uint16_t distance ()
| distance |
[const]
inline void set_distance (const uint16_t distance)
| set_distance |
inline TimeVal time_remaining ()
| time_remaining |
[const]
Returns: the amount of time remaining until this MID entry expires.
void update_timer (const TimeVal& vtime)
| update_timer |
Update the MidEntry's expiry timer.
Parameters:
vtime | the new value of the expiry timer. |
void event_dead ()
| event_dead |
Callback method to: delete a dying MidEntry.