A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::Ipv4Route Class Reference

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

#include <ipv4-route.h>

+ Inheritance diagram for ns3::Ipv4Route:

Public Member Functions

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

Private Attributes

Ipv4Address m_dest
 
Ipv4Address m_gateway
 
Ptr< NetDevicem_outputDevice
 
Ipv4Address m_source
 

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.

Definition at line 42 of file ipv4-route.h.

Member Function Documentation

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

Definition at line 70 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

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


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