class MidEntry

A multiple interface record (MID). More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

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:

vtimethe new value of the expiry timer.
void  event_dead ()

event_dead

Callback method to: delete a dying MidEntry.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:06:13 2008, using kdoc 2.0a54+XORP.