A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::flame::FlameRtable::LookupResult Struct Reference

Route lookup result, return type of LookupXXX methods. More...

#include <flame-rtable.h>

+ Collaboration diagram for ns3::flame::FlameRtable::LookupResult:

Public Member Functions

 LookupResult (Mac48Address r=Mac48Address::GetBroadcast(), uint32_t i=INTERFACE_ANY, uint8_t c=MAX_COST, uint16_t s=0)
bool IsValid () const
 True for valid route. More...
bool operator== (const LookupResult &o) const
 Compare route lookup results, used by tests. More...

Public Attributes

uint8_t cost
uint32_t ifIndex
Mac48Address retransmitter
uint16_t seqnum

Detailed Description

Route lookup result, return type of LookupXXX methods.

Definition at line 45 of file flame-rtable.h.

Constructor & Destructor Documentation

ns3::flame::FlameRtable::LookupResult::LookupResult ( Mac48Address  r = Mac48Address::GetBroadcast (),
uint32_t  i = INTERFACE_ANY,
uint8_t  c = MAX_COST,
uint16_t  s = 0 

Definition at line 51 of file flame-rtable.h.

Member Function Documentation

bool ns3::flame::FlameRtable::LookupResult::IsValid ( ) const

True for valid route.

Definition at line 107 of file flame-rtable.cc.

References ns3::Mac48Address::GetBroadcast(), ns3::flame::FlameRtable::INTERFACE_ANY, and ns3::flame::FlameRtable::MAX_COST.

+ Here is the call graph for this function:

bool ns3::flame::FlameRtable::LookupResult::operator== ( const LookupResult o) const

Compare route lookup results, used by tests.

Definition at line 101 of file flame-rtable.cc.

References cost, ifIndex, retransmitter, and seqnum.

Member Data Documentation

uint8_t ns3::flame::FlameRtable::LookupResult::cost

Definition at line 49 of file flame-rtable.h.

Referenced by operator==().

uint32_t ns3::flame::FlameRtable::LookupResult::ifIndex

Definition at line 48 of file flame-rtable.h.

Referenced by operator==(), and ns3::flame::FlameProtocol::RequestRoute().

Mac48Address ns3::flame::FlameRtable::LookupResult::retransmitter
uint16_t ns3::flame::FlameRtable::LookupResult::seqnum

Definition at line 50 of file flame-rtable.h.

Referenced by ns3::flame::FlameProtocol::HandleDataFrame(), and operator==().

The documentation for this struct was generated from the following files: