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 47 of file flame-rtable.h.
|
inline |
Constructor.
r | retransmitter MAC address |
i | interfce index |
c | cost |
s | sequence number |
Definition at line 62 of file flame-rtable.h.
bool ns3::flame::FlameRtable::LookupResult::IsValid | ( | ) | const |
Definition at line 121 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 114 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 |
IF index.
Definition at line 50 of file flame-rtable.h.
Referenced by operator==(), and ns3::flame::FlameProtocol::RequestRoute().
Mac48Address ns3::flame::FlameRtable::LookupResult::retransmitter |
retransmitter
Definition at line 49 of file flame-rtable.h.
Referenced by ns3::flame::FlameProtocol::HandleDataFrame(), operator==(), and ns3::flame::FlameProtocol::RequestRoute().
uint16_t ns3::flame::FlameRtable::LookupResult::seqnum |
sequence number
Definition at line 52 of file flame-rtable.h.
Referenced by ns3::flame::FlameProtocol::HandleDataFrame(), and operator==().