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

Public Attributes

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

Detailed Description

Route lookup result, return type of LookupXXX methods.

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

Constructor & Destructor Documentation

◆ LookupResult()

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 51 of file flame-rtable.h.

Member Function Documentation

◆ IsValid()

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.

+ Here is the call graph for this function:

◆ operator==()

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 103 of file flame-rtable.cc.

References cost, ifIndex, retransmitter, and seqnum.

Member Data Documentation

◆ cost

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

cost

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

Referenced by operator==().

◆ ifIndex

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

IF index.

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

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

◆ retransmitter

Mac48Address ns3::flame::FlameRtable::LookupResult::retransmitter

◆ seqnum

uint16_t ns3::flame::FlameRtable::LookupResult::seqnum

sequence number

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

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


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