Routing table entry. More...
#include <aodv-rtable.h>
Public Member Functions | |
RoutingTableEntry (Ptr< NetDevice > dev=0, Ipv4Address dst=Ipv4Address(), bool vSeqNo=false, uint32_t m_seqNo=0, Ipv4InterfaceAddress iface=Ipv4InterfaceAddress(), uint16_t hops=0, Ipv4Address nextHop=Ipv4Address(), Time lifetime=Simulator::Now()) | |
c-to | |
void | Invalidate (Time badLinkLifetime) |
Mark entry as "down" (i.e. disable it). | |
bool | operator== (Ipv4Address const dst) const |
Compare destination address. | |
void | Print (Ptr< OutputStreamWrapper > stream) const |
Precursors management | |
bool | InsertPrecursor (Ipv4Address id) |
bool | LookupPrecursor (Ipv4Address id) |
bool | DeletePrecursor (Ipv4Address id) |
Delete precursor. | |
void | DeleteAllPrecursors () |
Delete all precursors. | |
bool | IsPrecursorListEmpty () const |
void | GetPrecursors (std::vector< Ipv4Address > &prec) const |
Fields | |
| |
Timer | m_ackTimer |
RREP_ACK timer. | |
Ipv4Address | GetDestination () const |
Ptr< Ipv4Route > | GetRoute () const |
void | SetRoute (Ptr< Ipv4Route > r) |
void | SetNextHop (Ipv4Address nextHop) |
Ipv4Address | GetNextHop () const |
void | SetOutputDevice (Ptr< NetDevice > dev) |
Ptr< NetDevice > | GetOutputDevice () const |
Ipv4InterfaceAddress | GetInterface () const |
void | SetInterface (Ipv4InterfaceAddress iface) |
void | SetValidSeqNo (bool s) |
bool | GetValidSeqNo () const |
void | SetSeqNo (uint32_t sn) |
uint32_t | GetSeqNo () const |
void | SetHop (uint16_t hop) |
uint16_t | GetHop () const |
void | SetLifeTime (Time lt) |
Time | GetLifeTime () const |
void | SetFlag (RouteFlags flag) |
RouteFlags | GetFlag () const |
void | SetRreqCnt (uint8_t n) |
uint8_t | GetRreqCnt () const |
void | IncrementRreqCnt () |
void | SetUnidirectional (bool u) |
bool | IsUnidirectional () const |
void | SetBalcklistTimeout (Time t) |
Time | GetBlacklistTimeout () const |
Routing table entry.
bool ns3::aodv::RoutingTableEntry::DeletePrecursor | ( | Ipv4Address | id | ) |
Delete precursor.
id | precursor address |
void ns3::aodv::RoutingTableEntry::GetPrecursors | ( | std::vector< Ipv4Address > & | prec | ) | const |
Inserts precursors in vector prec if they does not yet exist in vector
bool ns3::aodv::RoutingTableEntry::InsertPrecursor | ( | Ipv4Address | id | ) |
Insert precursor in precursor list if it doesn't yet exist in the list
id | precursor address |
bool ns3::aodv::RoutingTableEntry::IsPrecursorListEmpty | ( | ) | const |
bool ns3::aodv::RoutingTableEntry::LookupPrecursor | ( | Ipv4Address | id | ) |
Lookup precursor by address
id | precursor address |
bool ns3::aodv::RoutingTableEntry::operator== | ( | Ipv4Address const | dst | ) | const [inline] |
Compare destination address.