ns-3
ns3::Ipv4Route Class Reference

Ipv4 route cache entry (similar to Linux struct rtable) More...

#include <ipv4-route.h>

Inheritance diagram for ns3::Ipv4Route:
Collaboration diagram for ns3::Ipv4Route:

List of all members.

Public Member Functions

void SetDestination (Ipv4Address dest)
Ipv4Address GetDestination (void) const
void SetSource (Ipv4Address src)
Ipv4Address GetSource (void) const
void SetGateway (Ipv4Address gw)
Ipv4Address GetGateway (void) const
void SetOutputDevice (Ptr< NetDevice > outputDevice)
Ptr< NetDeviceGetOutputDevice (void) const
- Public Member Functions inherited from ns3::SimpleRefCount< Ipv4Route >
 SimpleRefCount (const SimpleRefCount &o)
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const

Additional Inherited Members

- Static Public Member Functions inherited from ns3::SimpleRefCount< Ipv4Route >
static void Cleanup (void)

Detailed Description

Ipv4 route cache entry (similar to Linux struct rtable)

This is a reference counted object. In the future, we will add other entries from struct dst_entry, struct rtable, and struct dst_ops as needed.


Member Function Documentation

Ipv4Address ns3::Ipv4Route::GetGateway ( void  ) const
Returns:
Ipv4Address of the gateway (next hop)

Referenced by ns3::aodv::RoutingProtocol::RouteOutput(), and ns3::Ipv4L3Protocol::Send().

Ptr< NetDevice > ns3::Ipv4Route::GetOutputDevice ( void  ) const
Returns:
pointer to NetDevice for outgoing packets

Referenced by ns3::aodv::RoutingProtocol::RouteOutput(), and ns3::dsdv::RoutingProtocol::RouteOutput().

void ns3::Ipv4Route::SetDestination ( Ipv4Address  dest)
void ns3::Ipv4Route::SetGateway ( Ipv4Address  gw)
void ns3::Ipv4Route::SetOutputDevice ( Ptr< NetDevice outputDevice)

Equivalent in Linux to dst_entry.dev

Parameters:
outputDevicepointer to NetDevice for outgoing packets

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsdv::RoutingTableEntry::RoutingTableEntry(), and ns3::aodv::RoutingTableEntry::RoutingTableEntry().

void ns3::Ipv4Route::SetSource ( Ipv4Address  src)

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