xorp

DupeTuple Class Reference

A member of the duplicate set. More...

#include <face_manager.hh>

List of all members.

Public Member Functions

 DupeTuple (EventLoop &ev, FaceManager *parent, const IPv4 &origin, const uint16_t seqno, const TimeVal &vtime)
IPv4 origin () const
uint16_t seqno () const
bool is_forwarded () const
void set_is_forwarded (const bool is_forwarded)
 Set the forwarded flag for this message.
bool is_seen_by_face (const OlsrTypes::FaceID faceid) const
 Determine if an interface has already received this message.
void set_seen_by_face (const OlsrTypes::FaceID faceid)
 Add an interface to the list of interfaces which have already received this message.
void update_timer (const TimeVal &vtime)
 Update the validity timer on this duplicate set entry.
void event_dead ()
 Callback method to: remove a duplicate set entry when it expires.

Private Attributes

EventLoop_ev
FaceManager_parent
set< OlsrTypes::FaceID_iface_list
IPv4 _origin
uint16_t _seqno
bool _is_forwarded
XorpTimer _expiry_timer

Detailed Description

A member of the duplicate set.

This is contained within a map keyed by its origin address.


Member Function Documentation

bool DupeTuple::is_forwarded ( ) const [inline]
Returns:
true if the message has previously been forwarded.
bool DupeTuple::is_seen_by_face ( const OlsrTypes::FaceID  faceid) const [inline]

Determine if an interface has already received this message.

Parameters:
faceidthe ID of the interface to check.
Returns:
true if this message has previously been received by faceid.
IPv4 DupeTuple::origin ( ) const [inline]
Returns:
the origin of this duplicate set tuple.
uint16_t DupeTuple::seqno ( ) const [inline]
Returns:
the sequence number of this duplicate set tuple.
void DupeTuple::set_is_forwarded ( const bool  is_forwarded) [inline]

Set the forwarded flag for this message.

Parameters:
is_forwardedthe new value of _is_forwarded.
void DupeTuple::set_seen_by_face ( const OlsrTypes::FaceID  faceid) [inline]

Add an interface to the list of interfaces which have already received this message.

Parameters:
faceidthe ID of the interface to add.
void DupeTuple::update_timer ( const TimeVal vtime)

Update the validity timer on this duplicate set entry.

Parameters:
vtimerelative validity time from now.

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