A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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:
+ Collaboration 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)
void SetSource (Ipv4Address src)
- Public Member Functions inherited from ns3::SimpleRefCount< Ipv4Route >
 SimpleRefCount ()
 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.

Constructor & Destructor Documentation

ns3::Ipv4Route::Ipv4Route ( )

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

Member Function Documentation

Member Data Documentation

Ipv4Address ns3::Ipv4Route::m_dest
private

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

Referenced by GetDestination(), and SetDestination().

Ipv4Address ns3::Ipv4Route::m_gateway
private

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

Referenced by GetGateway(), and SetGateway().

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

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

Referenced by GetOutputDevice(), and SetOutputDevice().

Ipv4Address ns3::Ipv4Route::m_source
private

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

Referenced by GetSource(), and SetSource().


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