A Discrete-Event Network Simulator
API
ns3::dot11s::HwmpRtable::LookupResult Struct Reference

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

#include "hwmp-rtable.h"

+ Collaboration diagram for ns3::dot11s::HwmpRtable::LookupResult:

Public Member Functions

 LookupResult (Mac48Address r=Mac48Address::GetBroadcast(), uint32_t i=INTERFACE_ANY, uint32_t m=MAX_METRIC, uint32_t s=0, Time l=Seconds(0.0))
 Lookup result function. More...
 
bool IsValid () const
 
bool operator== (const LookupResult &o) const
 Compare route lookup results, used by tests. More...
 

Public Attributes

uint32_t ifIndex
 IF index. More...
 
Time lifetime
 lifetime More...
 
uint32_t metric
 metric More...
 
Mac48Address retransmitter
 retransmitter More...
 
uint32_t seqnum
 sequence number More...
 

Detailed Description

Route lookup result, return type of LookupXXX methods.

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

Constructor & Destructor Documentation

◆ LookupResult()

ns3::dot11s::HwmpRtable::LookupResult::LookupResult ( Mac48Address  r = Mac48Address::GetBroadcast(),
uint32_t  i = INTERFACE_ANY,
uint32_t  m = MAX_METRIC,
uint32_t  s = 0,
Time  l = Seconds(0.0) 
)

Lookup result function.

Parameters
rthe result address
ithe interface
mthe metric
sthe sequence number
lthe lifetime

Definition at line 282 of file hwmp-rtable.cc.

Member Function Documentation

◆ IsValid()

bool ns3::dot11s::HwmpRtable::LookupResult::IsValid ( ) const
Returns
True for valid route

Definition at line 292 of file hwmp-rtable.cc.

References ns3::Mac48Address::GetBroadcast(), ns3::dot11s::HwmpRtable::INTERFACE_ANY, and ns3::dot11s::HwmpRtable::MAX_METRIC.

Referenced by HwmpRtableTest::TestExpire(), and HwmpRtableTest::TestLookup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool ns3::dot11s::HwmpRtable::LookupResult::operator== ( const LookupResult o) const

Compare route lookup results, used by tests.

Parameters
othe lookup result to compare
Returns
true if equal

Definition at line 276 of file hwmp-rtable.cc.

References ifIndex, metric, retransmitter, and seqnum.

Member Data Documentation

◆ ifIndex

◆ lifetime

Time ns3::dot11s::HwmpRtable::LookupResult::lifetime

◆ metric

uint32_t ns3::dot11s::HwmpRtable::LookupResult::metric

metric

Definition at line 52 of file hwmp-rtable.h.

Referenced by operator==(), and ns3::dot11s::HwmpProtocol::ReceivePreq().

◆ retransmitter

◆ seqnum


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