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) | |
bool | IsValid () const |
True for valid route. More... | |
bool | operator== (const LookupResult &o) const |
Compare route lookup results, used by tests. More... | |
Public Attributes | |
uint8_t | cost |
uint32_t | ifIndex |
Mac48Address | retransmitter |
uint16_t | seqnum |
Route lookup result, return type of LookupXXX methods.
Definition at line 45 of file flame-rtable.h.
|
inline |
Definition at line 51 of file flame-rtable.h.
bool ns3::flame::FlameRtable::LookupResult::IsValid | ( | ) | const |
True for valid route.
Definition at line 107 of file flame-rtable.cc.
References ns3::Mac48Address::GetBroadcast(), ns3::flame::FlameRtable::INTERFACE_ANY, and ns3::flame::FlameRtable::MAX_COST.
bool ns3::flame::FlameRtable::LookupResult::operator== | ( | const LookupResult & | o | ) | const |
Compare route lookup results, used by tests.
Definition at line 101 of file flame-rtable.cc.
References cost, ifIndex, retransmitter, and seqnum.
uint8_t ns3::flame::FlameRtable::LookupResult::cost |
Definition at line 49 of file flame-rtable.h.
Referenced by operator==().
uint32_t ns3::flame::FlameRtable::LookupResult::ifIndex |
Definition at line 48 of file flame-rtable.h.
Referenced by operator==(), and ns3::flame::FlameProtocol::RequestRoute().
Mac48Address ns3::flame::FlameRtable::LookupResult::retransmitter |
Definition at line 47 of file flame-rtable.h.
Referenced by ns3::flame::FlameProtocol::HandleDataFrame(), operator==(), and ns3::flame::FlameProtocol::RequestRoute().
uint16_t ns3::flame::FlameRtable::LookupResult::seqnum |
Definition at line 50 of file flame-rtable.h.
Referenced by ns3::flame::FlameProtocol::HandleDataFrame(), and operator==().