IPv6 route cache entry. More...
#include "ipv6-route.h"
Public Member Functions | |
Ipv6Route () | |
Constructor. | |
virtual | ~Ipv6Route () |
Destructor. | |
Ipv6Address | GetDestination () const |
Get destination address. | |
Ipv6Address | GetGateway () const |
Get gateway address. | |
Ptr< NetDevice > | GetOutputDevice () const |
Get output device. | |
Ipv6Address | GetSource () const |
Get source address. | |
void | SetDestination (Ipv6Address dest) |
Set destination address. | |
void | SetGateway (Ipv6Address gw) |
Set gateway address. | |
void | SetOutputDevice (Ptr< NetDevice > outputDevice) |
Set output device for outgoing packets. | |
void | SetSource (Ipv6Address src) |
Set source address. | |
Public Member Functions inherited from ns3::SimpleRefCount< Ipv6Route > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Private Attributes | |
Ipv6Address | m_dest |
Destination address. | |
Ipv6Address | m_gateway |
Gateway address. | |
Ptr< NetDevice > | m_outputDevice |
Output device. | |
Ipv6Address | m_source |
source address. | |
IPv6 route cache entry.
Definition at line 29 of file ipv6-route.h.
ns3::Ipv6Route::Ipv6Route | ( | ) |
Constructor.
Definition at line 18 of file ipv6-route.cc.
|
virtual |
Destructor.
Definition at line 22 of file ipv6-route.cc.
Ipv6Address ns3::Ipv6Route::GetDestination | ( | ) | const |
Get destination address.
Definition at line 33 of file ipv6-route.cc.
References m_dest.
Referenced by ns3::operator<<().
Ipv6Address ns3::Ipv6Route::GetGateway | ( | ) | const |
Get gateway address.
Definition at line 57 of file ipv6-route.cc.
References m_gateway.
Referenced by ns3::operator<<().
Get output device.
Definition at line 69 of file ipv6-route.cc.
References m_outputDevice.
Ipv6Address ns3::Ipv6Route::GetSource | ( | ) | const |
Get source address.
Definition at line 45 of file ipv6-route.cc.
References m_source.
Referenced by ns3::operator<<().
void ns3::Ipv6Route::SetDestination | ( | Ipv6Address | dest | ) |
Set destination address.
dest | IPv6 destination address |
Definition at line 27 of file ipv6-route.cc.
References m_dest.
void ns3::Ipv6Route::SetGateway | ( | Ipv6Address | gw | ) |
Set gateway address.
gw | IPv6 gateway address |
Definition at line 51 of file ipv6-route.cc.
References m_gateway.
Set output device for outgoing packets.
outputDevice | output device |
Definition at line 63 of file ipv6-route.cc.
References m_outputDevice.
void ns3::Ipv6Route::SetSource | ( | Ipv6Address | src | ) |
Set source address.
src | IPv6 source address |
Definition at line 39 of file ipv6-route.cc.
References m_source.
|
private |
Destination address.
Definition at line 94 of file ipv6-route.h.
Referenced by GetDestination(), and SetDestination().
|
private |
Gateway address.
Definition at line 104 of file ipv6-route.h.
Referenced by GetGateway(), and SetGateway().
Output device.
Definition at line 109 of file ipv6-route.h.
Referenced by GetOutputDevice(), and SetOutputDevice().
|
private |
source address.
Definition at line 99 of file ipv6-route.h.
Referenced by GetSource(), and SetSource().