Routing table entry. More...
#include <dsdv-rtable.h>
Private Attributes | |
Fields | |
uint32_t | m_seqNo |
Destination Sequence Number. More... | |
uint32_t | m_hops |
Hop Count (number of hops needed to reach destination) More... | |
Time | m_lifeTime |
Expiration or deletion time of the route Lifetime field in the routing table plays dual role – for an active route it is the expiration time, and for an invalid route it is the deletion time. More... | |
Ptr< Ipv4Route > | m_ipv4Route |
Ip route, include. More... | |
Ipv4InterfaceAddress | m_iface |
Output interface address. More... | |
RouteFlags | m_flag |
Routing flags: valid, invalid or in search. More... | |
Time | m_settlingTime |
Time for which the node retains an update with changed metric before broadcasting it. More... | |
uint32_t | m_entriesChanged |
Flag to show if any of the routing table entries were changed with the routing update. More... | |
Routing table entry.
Definition at line 56 of file dsdv-rtable.h.
ns3::dsdv::RoutingTableEntry::RoutingTableEntry | ( | Ptr< NetDevice > | dev = 0 , |
Ipv4Address | dst = Ipv4Address () , |
||
uint32_t | m_seqNo = 0 , |
||
Ipv4InterfaceAddress | iface = Ipv4InterfaceAddress () , |
||
uint32_t | hops = 0 , |
||
Ipv4Address | nextHop = Ipv4Address () , |
||
Time | lifetime = Simulator::Now () , |
||
Time | SettlingTime = Simulator::Now () , |
||
bool | changedEntries = false |
||
) |
c-tor
Definition at line 40 of file dsdv-rtable.cc.
References ns3::Ipv4InterfaceAddress::GetLocal(), m_iface, m_ipv4Route, ns3::Ipv4Route::SetDestination(), ns3::Ipv4Route::SetGateway(), ns3::Ipv4Route::SetOutputDevice(), and ns3::Ipv4Route::SetSource().
ns3::dsdv::RoutingTableEntry::~RoutingTableEntry | ( | ) |
Definition at line 63 of file dsdv-rtable.cc.
|
inline |
Definition at line 66 of file dsdv-rtable.h.
References ns3::Ipv4Route::GetDestination(), and m_ipv4Route.
Referenced by ns3::dsdv::RoutingTable::AddRoute(), ns3::DsdvTableTestCase::DoRun(), ns3::dsdv::RoutingProtocol::LookForQueuedPackets(), ns3::dsdv::RoutingProtocol::MergeTriggerPeriodicUpdates(), and ns3::dsdv::RoutingTable::Update().
|
inline |
Definition at line 166 of file dsdv-rtable.h.
References m_entriesChanged.
Referenced by ns3::dsdv::RoutingProtocol::MergeTriggerPeriodicUpdates().
|
inline |
Definition at line 156 of file dsdv-rtable.h.
References m_flag.
|
inline |
Definition at line 126 of file dsdv-rtable.h.
References m_hops.
Referenced by ns3::DsdvTableTestCase::DoRun(), ns3::dsdv::RoutingProtocol::LookForQueuedPackets(), and ns3::dsdv::RoutingProtocol::SendTriggeredUpdate().
|
inline |
Definition at line 101 of file dsdv-rtable.h.
References m_iface.
Referenced by ns3::DsdvTableTestCase::DoRun().
|
inline |
Definition at line 136 of file dsdv-rtable.h.
References m_lifeTime, and ns3::Simulator::Now().
Referenced by ns3::dsdv::RoutingProtocol::GetSettlingTime().
|
inline |
Definition at line 86 of file dsdv-rtable.h.
References ns3::Ipv4Route::GetGateway(), and m_ipv4Route.
Referenced by ns3::dsdv::RoutingProtocol::LookForQueuedPackets(), and ns3::dsdv::RoutingProtocol::RouteInput().
Definition at line 96 of file dsdv-rtable.h.
References ns3::Ipv4Route::GetOutputDevice(), and m_ipv4Route.
Definition at line 71 of file dsdv-rtable.h.
References m_ipv4Route.
Referenced by ns3::dsdv::RoutingProtocol::LookForQueuedPackets(), ns3::dsdv::RoutingProtocol::RouteInput(), and ns3::dsdv::RoutingProtocol::RouteOutput().
|
inline |
Definition at line 116 of file dsdv-rtable.h.
References m_seqNo.
Referenced by ns3::DsdvTableTestCase::DoRun(), ns3::dsdv::RoutingProtocol::MergeTriggerPeriodicUpdates(), and ns3::dsdv::RoutingProtocol::SendTriggeredUpdate().
|
inline |
Definition at line 146 of file dsdv-rtable.h.
References m_settlingTime.
Referenced by ns3::dsdv::RoutingProtocol::GetSettlingTime().
|
inline |
Compare destination address.
Definition at line 175 of file dsdv-rtable.h.
References ns3::Ipv4Route::GetDestination(), and m_ipv4Route.
void ns3::dsdv::RoutingTableEntry::Print | ( | Ptr< OutputStreamWrapper > | stream | ) | const |
Definition at line 197 of file dsdv-rtable.cc.
References ns3::Ipv4Route::GetDestination(), ns3::Ipv4Route::GetGateway(), ns3::Ipv4InterfaceAddress::GetLocal(), ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), m_hops, m_iface, m_ipv4Route, m_lifeTime, m_seqNo, m_settlingTime, and ns3::Simulator::Now().
|
inline |
Definition at line 161 of file dsdv-rtable.h.
References m_entriesChanged.
Referenced by ns3::dsdv::RoutingProtocol::MergeTriggerPeriodicUpdates(), and ns3::dsdv::RoutingProtocol::SetIpv4().
|
inline |
Definition at line 151 of file dsdv-rtable.h.
References m_flag.
Referenced by ns3::dsdv::RoutingProtocol::MergeTriggerPeriodicUpdates(), ns3::dsdv::RoutingProtocol::RecvDsdv(), and ns3::dsdv::RoutingProtocol::SetIpv4().
|
inline |
Definition at line 121 of file dsdv-rtable.h.
References m_hops.
|
inline |
Definition at line 106 of file dsdv-rtable.h.
References m_iface.
|
inline |
Definition at line 131 of file dsdv-rtable.h.
References m_lifeTime.
|
inline |
Definition at line 81 of file dsdv-rtable.h.
References m_ipv4Route, and ns3::Ipv4Route::SetGateway().
Definition at line 91 of file dsdv-rtable.h.
References m_ipv4Route, and ns3::Ipv4Route::SetOutputDevice().
Definition at line 76 of file dsdv-rtable.h.
References m_ipv4Route.
|
inline |
Definition at line 111 of file dsdv-rtable.h.
References m_seqNo.
Referenced by ns3::dsdv::RoutingProtocol::SendPeriodicUpdate().
|
inline |
Definition at line 141 of file dsdv-rtable.h.
References m_settlingTime.
|
private |
Flag to show if any of the routing table entries were changed with the routing update.
Definition at line 211 of file dsdv-rtable.h.
Referenced by GetEntriesChanged(), and SetEntriesChanged().
|
private |
Routing flags: valid, invalid or in search.
Definition at line 206 of file dsdv-rtable.h.
|
private |
Hop Count (number of hops needed to reach destination)
Definition at line 188 of file dsdv-rtable.h.
|
private |
Output interface address.
Definition at line 204 of file dsdv-rtable.h.
Referenced by GetInterface(), Print(), RoutingTableEntry(), and SetInterface().
Ip route, include.
Definition at line 202 of file dsdv-rtable.h.
Referenced by GetDestination(), GetNextHop(), GetOutputDevice(), GetRoute(), operator==(), Print(), RoutingTableEntry(), SetNextHop(), SetOutputDevice(), and SetRoute().
|
private |
Expiration or deletion time of the route Lifetime field in the routing table plays dual role – for an active route it is the expiration time, and for an invalid route it is the deletion time.
Definition at line 195 of file dsdv-rtable.h.
Referenced by GetLifeTime(), Print(), and SetLifeTime().
|
private |
Destination Sequence Number.
Definition at line 186 of file dsdv-rtable.h.
Referenced by GetSeqNo(), Print(), and SetSeqNo().
|
private |
Time for which the node retains an update with changed metric before broadcasting it.
A node does that in hope of receiving a better update.
Definition at line 209 of file dsdv-rtable.h.
Referenced by GetSettlingTime(), Print(), and SetSettlingTime().