A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | List of all members
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

 Ipv4Route ()
 
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)
 Equivalent in Linux to dst_entry.dev. More...
 
void SetSource (Ipv4Address src)
 
- Public Member Functions inherited from ns3::SimpleRefCount< Ipv4Route >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Attributes

Ipv4Address m_dest
 Destination address. More...
 
Ipv4Address m_gateway
 Gateway address. More...
 
Ptr< NetDevicem_outputDevice
 Output device. More...
 
Ipv4Address m_source
 Source address. More...
 

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 41 of file ipv4-route.h.

Constructor & Destructor Documentation

◆ Ipv4Route()

ns3::Ipv4Route::Ipv4Route ( )

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

References NS_LOG_FUNCTION.

Member Function Documentation

◆ GetDestination()

Ipv4Address ns3::Ipv4Route::GetDestination ( void  ) const

◆ GetGateway()

Ipv4Address ns3::Ipv4Route::GetGateway ( void  ) const

◆ GetOutputDevice()

Ptr< NetDevice > ns3::Ipv4Route::GetOutputDevice ( void  ) const

◆ GetSource()

Ipv4Address ns3::Ipv4Route::GetSource ( void  ) const

◆ SetDestination()

void ns3::Ipv4Route::SetDestination ( Ipv4Address  dest)

◆ SetGateway()

void ns3::Ipv4Route::SetGateway ( Ipv4Address  gw)

◆ SetOutputDevice()

void ns3::Ipv4Route::SetOutputDevice ( Ptr< NetDevice outputDevice)

◆ SetSource()

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

Member Data Documentation

◆ m_dest

Ipv4Address ns3::Ipv4Route::m_dest
private

Destination address.

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

Referenced by GetDestination(), and SetDestination().

◆ m_gateway

Ipv4Address ns3::Ipv4Route::m_gateway
private

Gateway address.

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

Referenced by GetGateway(), and SetGateway().

◆ m_outputDevice

Ptr<NetDevice> ns3::Ipv4Route::m_outputDevice
private

Output device.

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

Referenced by GetOutputDevice(), and SetOutputDevice().

◆ m_source

Ipv4Address ns3::Ipv4Route::m_source
private

Source address.

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

Referenced by GetSource(), and SetSource().


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