A Discrete-Event Network Simulator
API
ns3::Ipv6Route Class Reference

IPv6 route cache entry. More...

#include "ipv6-route.h"

+ Inheritance diagram for ns3::Ipv6Route:
+ Collaboration diagram for ns3::Ipv6Route:

Public Member Functions

 Ipv6Route ()
 Constructor. More...
 
virtual ~Ipv6Route ()
 Destructor. More...
 
Ipv6Address GetDestination () const
 Get destination address. More...
 
Ipv6Address GetGateway () const
 Get gateway address. More...
 
Ptr< NetDeviceGetOutputDevice () const
 Get output device. More...
 
Ipv6Address GetSource () const
 Get source address. More...
 
void SetDestination (Ipv6Address dest)
 Set destination address. More...
 
void SetGateway (Ipv6Address gw)
 Set gateway address. More...
 
void SetOutputDevice (Ptr< NetDevice > outputDevice)
 Set output device for outgoing packets. More...
 
void SetSource (Ipv6Address src)
 Set source address. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Ipv6Route >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o[[maybe_unused]])
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= ([[maybe_unused]] 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

Ipv6Address m_dest
 Destination address. More...
 
Ipv6Address m_gateway
 Gateway address. More...
 
Ptr< NetDevicem_outputDevice
 Output device. More...
 
Ipv6Address m_source
 source address. More...
 

Detailed Description

IPv6 route cache entry.

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

Constructor & Destructor Documentation

◆ Ipv6Route()

ns3::Ipv6Route::Ipv6Route ( )

Constructor.

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

◆ ~Ipv6Route()

ns3::Ipv6Route::~Ipv6Route ( )
virtual

Destructor.

Definition at line 33 of file ipv6-route.cc.

Member Function Documentation

◆ GetDestination()

Ipv6Address ns3::Ipv6Route::GetDestination ( void  ) const

Get destination address.

Returns
destination address

Definition at line 42 of file ipv6-route.cc.

References m_dest.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

◆ GetGateway()

Ipv6Address ns3::Ipv6Route::GetGateway ( void  ) const

Get gateway address.

Returns
gateway address

Definition at line 62 of file ipv6-route.cc.

References m_gateway.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

◆ GetOutputDevice()

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

Get output device.

Returns
output device

Definition at line 72 of file ipv6-route.cc.

References m_outputDevice.

◆ GetSource()

Ipv6Address ns3::Ipv6Route::GetSource ( void  ) const

Get source address.

Returns
source address

Definition at line 52 of file ipv6-route.cc.

References m_source.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

◆ SetDestination()

void ns3::Ipv6Route::SetDestination ( Ipv6Address  dest)

Set destination address.

Parameters
destIPv6 destination address

Definition at line 37 of file ipv6-route.cc.

References m_dest.

◆ SetGateway()

void ns3::Ipv6Route::SetGateway ( Ipv6Address  gw)

Set gateway address.

Parameters
gwIPv6 gateway address

Definition at line 57 of file ipv6-route.cc.

References m_gateway.

◆ SetOutputDevice()

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

Set output device for outgoing packets.

Parameters
outputDeviceoutput device

Definition at line 67 of file ipv6-route.cc.

References m_outputDevice.

◆ SetSource()

void ns3::Ipv6Route::SetSource ( Ipv6Address  src)

Set source address.

Parameters
srcIPv6 source address

Definition at line 47 of file ipv6-route.cc.

References m_source.

Member Data Documentation

◆ m_dest

Ipv6Address ns3::Ipv6Route::m_dest
private

Destination address.

Definition at line 107 of file ipv6-route.h.

Referenced by GetDestination(), and SetDestination().

◆ m_gateway

Ipv6Address ns3::Ipv6Route::m_gateway
private

Gateway address.

Definition at line 117 of file ipv6-route.h.

Referenced by GetGateway(), and SetGateway().

◆ m_outputDevice

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

Output device.

Definition at line 122 of file ipv6-route.h.

Referenced by GetOutputDevice(), and SetOutputDevice().

◆ m_source

Ipv6Address ns3::Ipv6Route::m_source
private

source address.

Definition at line 112 of file ipv6-route.h.

Referenced by GetSource(), and SetSource().


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