ns3::dsdv::RoutingTable Class Reference
[Dsdv]

The Routing table used by DSDV protocol. More...

#include <dsdv-rtable.h>

Collaboration diagram for ns3::dsdv::RoutingTable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool AddRoute (RoutingTableEntry &r)
bool DeleteRoute (Ipv4Address dst)
bool LookupRoute (Ipv4Address dst, RoutingTableEntry &rt)
bool LookupRoute (Ipv4Address id, RoutingTableEntry &rt, bool forRouteInput)
bool Update (RoutingTableEntry &rt)
void GetListOfDestinationWithNextHop (Ipv4Address nxtHp, std::map< Ipv4Address, RoutingTableEntry > &dstList)
void GetListOfAllRoutes (std::map< Ipv4Address, RoutingTableEntry > &allRoutes)
void DeleteAllRoutesFromInterface (Ipv4InterfaceAddress iface)
void Clear ()
void Purge (std::map< Ipv4Address, RoutingTableEntry > &removedAddresses)
void Print (Ptr< OutputStreamWrapper > stream) const
uint32_t RoutingTableSize ()
bool AddIpv4Event (Ipv4Address, EventId)
bool DeleteIpv4Event (Ipv4Address address)
bool AnyRunningEvent (Ipv4Address address)
bool ForceDeleteIpv4Event (Ipv4Address address)
EventId GetEventId (Ipv4Address address)



Time Getholddowntime () const
void Setholddowntime (Time t)

Detailed Description

The Routing table used by DSDV protocol.


Member Function Documentation

bool ns3::dsdv::RoutingTable::AddIpv4Event ( Ipv4Address  ,
EventId   
)

Add an event for a destination address so that the update to for that destination is sent after the event is completed.

Parameters:
destination address for which this event is running.
unique eventid that was generated.
bool ns3::dsdv::RoutingTable::AddRoute ( RoutingTableEntry r  ) 

Add routing table entry if it doesn't yet exist in routing table

Parameters:
r routing table entry
Returns:
true in success
bool ns3::dsdv::RoutingTable::AnyRunningEvent ( Ipv4Address  address  ) 

Force delete an update waiting for settling time to complete as a better update to same destination was received.

Parameters:
destination address for which this event is running.
Returns:
true on success
bool ns3::dsdv::RoutingTable::DeleteIpv4Event ( Ipv4Address  address  ) 

Clear up the entry from the map after the event is completed

Parameters:
destination address for which this event is running.
Returns:
true on success
bool ns3::dsdv::RoutingTable::DeleteRoute ( Ipv4Address  dst  ) 

Delete routing table entry with destination address dst, if it exists.

Parameters:
dst destination address
Returns:
true on success
bool ns3::dsdv::RoutingTable::ForceDeleteIpv4Event ( Ipv4Address  address  ) 

Force delete an update waiting for settling time to complete as a better update to same destination was received.

Parameters:
destination address for which this event is running.
Returns:
true on finding out that an event is already running for that destination address.
EventId ns3::dsdv::RoutingTable::GetEventId ( Ipv4Address  address  ) 

Get the EcentId associated with that address.

Parameters:
destination address for which this event is running.
Returns:
EventId on finding out an event is associated else return NULL.
void ns3::dsdv::RoutingTable::GetListOfAllRoutes ( std::map< Ipv4Address, RoutingTableEntry > &  allRoutes  ) 

Lookup list of all addresses in the routing table

Parameters:
allRoutes is the list that will hold all these addresses present in the nodes routing table
void ns3::dsdv::RoutingTable::GetListOfDestinationWithNextHop ( Ipv4Address  nxtHp,
std::map< Ipv4Address, RoutingTableEntry > &  dstList 
)

Lookup list of addresses for which nxtHp is the next Hop address

Parameters:
nexthop's address for which we want the list of destinations
dstList is the list that will hold all these destination addresses
bool ns3::dsdv::RoutingTable::LookupRoute ( Ipv4Address  dst,
RoutingTableEntry rt 
)

Lookup routing table entry with destination address dst

Parameters:
dst destination address
rt entry with destination address dst, if exists
Returns:
true on success
bool ns3::dsdv::RoutingTable::Update ( RoutingTableEntry rt  ) 

Updating the routing Table with routing table entry rt

Parameters:
routing table entry rt
Returns:
true on success

The documentation for this class was generated from the following file:

Generated on 6 Jan 2011 for NS-3 by  doxygen 1.6.1