Route lookup result, return type of LookupXXX methods. More...
#include "flame-rtable.h"
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... | |
Route lookup result, return type of LookupXXX methods.
Definition at line 45 of file flame-rtable.h.
|
inline |
Constructor.
r | retransmitter MAC address |
i | interfce index |
c | cost |
s | sequence number |
Definition at line 59 of file flame-rtable.h.
bool ns3::flame::FlameRtable::LookupResult::IsValid | ( | ) | const |
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().
bool ns3::flame::FlameRtable::LookupResult::operator== | ( | const LookupResult & | o | ) | const |
Compare route lookup results, used by tests.
o | the object to compare |
Definition at line 104 of file flame-rtable.cc.
References cost, ifIndex, retransmitter, and seqnum.
uint8_t ns3::flame::FlameRtable::LookupResult::cost |
uint32_t ns3::flame::FlameRtable::LookupResult::ifIndex |
Mac48Address ns3::flame::FlameRtable::LookupResult::retransmitter |
uint16_t ns3::flame::FlameRtable::LookupResult::seqnum |