NS-3
|
The Routing table used by AODV protocol. More...
#include <aodv-rtable.h>
Public Member Functions | |
RoutingTable (Time t) | |
c-tor | |
bool | AddRoute (RoutingTableEntry &r) |
bool | DeleteRoute (Ipv4Address dst) |
bool | LookupRoute (Ipv4Address dst, RoutingTableEntry &rt) |
bool | LookupValidRoute (Ipv4Address dst, RoutingTableEntry &rt) |
Lookup route in VALID state. | |
bool | Update (RoutingTableEntry &rt) |
Update routing table. | |
bool | SetEntryState (Ipv4Address dst, RouteFlags state) |
Set routing table entry flags. | |
void | GetListOfDestinationWithNextHop (Ipv4Address nextHop, std::map< Ipv4Address, uint32_t > &unreachable) |
Lookup routing entries with next hop Address dst and not empty list of precursors. | |
void | InvalidateRoutesWithDst (std::map< Ipv4Address, uint32_t > const &unreachable) |
void | DeleteAllRoutesFromInterface (Ipv4InterfaceAddress iface) |
Delete all route from interface with address iface. | |
void | Clear () |
Delete all entries from routing table. | |
void | Purge () |
Delete all outdated entries and invalidate valid entry if Lifetime is expired. | |
bool | MarkLinkAsUnidirectional (Ipv4Address neighbor, Time blacklistTimeout) |
void | Print (Ptr< OutputStreamWrapper > stream) const |
Print routing table. | |
Handle life time of invalid route | |
Time | GetBadLinkLifetime () const |
void | SetBadLinkLifetime (Time t) |
The Routing table used by AODV protocol.
bool ns3::aodv::RoutingTable::AddRoute | ( | RoutingTableEntry & | r | ) |
Add routing table entry if it doesn't yet exist in routing table
r | routing table entry |
bool ns3::aodv::RoutingTable::DeleteRoute | ( | Ipv4Address | dst | ) |
Delete routing table entry with destination address dst, if it exists.
dst | destination address |
void ns3::aodv::RoutingTable::InvalidateRoutesWithDst | ( | std::map< Ipv4Address, uint32_t > const & | unreachable | ) |
Update routing entries with this destinations as follows: 1. The destination sequence number of this routing entry, if it exists and is valid, is incremented. 2. The entry is invalidated by marking the route entry as invalid 3. The Lifetime field is updated to current time plus DELETE_PERIOD.
bool ns3::aodv::RoutingTable::LookupRoute | ( | Ipv4Address | dst, |
RoutingTableEntry & | rt | ||
) |
Lookup routing table entry with destination address dst
dst | destination address |
rt | entry with destination address dst, if exists |
bool ns3::aodv::RoutingTable::MarkLinkAsUnidirectional | ( | Ipv4Address | neighbor, |
Time | blacklistTimeout | ||
) |
Mark entry as unidirectional (e.g. add this neighbor to "blacklist" for blacklistTimeout period)
neighbor | - neighbor address link to which assumed to be unidirectional |
blacklistTimeout | - time for which the neighboring node is put into the blacklist |