A Discrete-Event Network Simulator
API
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)
 Constructor. More...
 
bool IsValid () const
 
bool operator== (const LookupResult &o) const
 Compare route lookup results, used by tests. More...
 

Public Attributes

uint8_t cost
 cost More...
 
uint32_t ifIndex
 IF index. More...
 
Mac48Address retransmitter
 retransmitter More...
 
uint16_t seqnum
 sequence number More...
 

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 
)
inline

Constructor.

Parameters
rretransmitter MAC address
iinterfce index
ccost
ssequence number

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

Member Function Documentation

bool ns3::flame::FlameRtable::LookupResult::IsValid ( ) const
Returns
True for valid route

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

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

Referenced by FlameRtableTest::TestExpire().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Compare route lookup results, used by tests.

Parameters
othe object to compare
Returns
true if equal

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

References cost, ifIndex, retransmitter, and seqnum.

Member Data Documentation

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

cost

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

Referenced by operator==().

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

IF index.

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

sequence number

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: