xorp

MidEntry Class Reference

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

#include <topology.hh>

List of all members.

Public Member Functions

 MidEntry (EventLoop &ev, TopologyManager *parent, const OlsrTypes::MidEntryID id, const IPv4 &iface_addr, const IPv4 &main_addr, const uint16_t distance, const TimeVal &vtime)
OlsrTypes::MidEntryID id () const
IPv4 iface_addr () const
IPv4 main_addr () const
uint16_t distance () const
void set_distance (const uint16_t distance)
TimeVal time_remaining () const
void update_timer (const TimeVal &vtime)
 Update the MidEntry's expiry timer.
void event_dead ()
 Callback method to: delete a dying MidEntry.

Private Attributes

EventLoop_ev
TopologyManager_parent
OlsrTypes::MidEntryID _id
IPv4 _iface_addr
IPv4 _main_addr
uint16_t _distance
XorpTimer _expiry_timer

Detailed Description

A multiple interface record (MID).

There is one MidEntry per interface address advertised by an OLSR peer. As such, a primary address may be associated with multiple MID entries.


Member Function Documentation

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

Update the MidEntry's expiry timer.

Parameters:
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