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

Router prefix for radvd application. More...

#include <radvd-prefix.h>

+ Inheritance diagram for ns3::RadvdPrefix:
+ Collaboration diagram for ns3::RadvdPrefix:

Public Member Functions

 RadvdPrefix (Ipv6Address network, uint8_t prefixLength, uint32_t preferredLifeTime=604800, uint32_t validLifeTime=2592000, bool onLinkFlag=true, bool autonomousFlag=true, bool routerAddrFlag=false)
 Constructor.
 ~RadvdPrefix ()
 Destructor.
Ipv6Address GetNetwork () const
 Get network prefix.
uint32_t GetPreferredLifeTime () const
 Get preferred lifetime.
uint8_t GetPrefixLength () const
 Get prefix length.
uint32_t GetValidLifeTime () const
 Get valid lifetime.
bool IsAutonomousFlag () const
 Is autonomous flag ?
bool IsOnLinkFlag () const
 Is on-link flag ?
bool IsRouterAddrFlag () const
 Is router address flag ?
void SetAutonomousFlag (bool autonomousFlag)
 Set autonomous flag.
void SetNetwork (Ipv6Address network)
 Set network prefix.
void SetOnLinkFlag (bool onLinkFlag)
 Set on-link flag.
void SetPreferredLifeTime (uint32_t preferredLifeTime)
 Set preferred lifetime.
void SetPrefixLength (uint8_t prefixLength)
 Set prefix length.
void SetRouterAddrFlag (bool routerAddrFlag)
 Set router address flag.
void SetValidLifeTime (uint32_t validLifeTime)
 Set valid lifetime.
- Public Member Functions inherited from ns3::SimpleRefCount< RadvdPrefix >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const

Private Attributes

bool m_autonomousFlag
 Autonomous flag, it is used for autonomous address configuration (RFC 2462).
Ipv6Address m_network
 Network prefix.
bool m_onLinkFlag
 On link flag, indicates that this prefix can be used for on-link determination.
uint32_t m_preferredLifeTime
 Preferred time.
uint8_t m_prefixLength
 Prefix length.
bool m_routerAddrFlag
 Router address flag, indicates that router address is sent instead of network prefix as is required by Mobile IPv6.
uint32_t m_validLifeTime
 Valid time.

Additional Inherited Members

- Static Public Member Functions inherited from ns3::SimpleRefCount< RadvdPrefix >
static void Cleanup (void)

Detailed Description

Router prefix for radvd application.

Definition at line 37 of file radvd-prefix.h.

Constructor & Destructor Documentation

ns3::RadvdPrefix::RadvdPrefix ( Ipv6Address  network,
uint8_t  prefixLength,
uint32_t  preferredLifeTime = 604800,
uint32_t  validLifeTime = 2592000,
bool  onLinkFlag = true,
bool  autonomousFlag = true,
bool  routerAddrFlag = false 
)

Constructor.

Parameters
networknetwork prefix advertised
prefixLengthprefix length ( 0 < x <= 128)
preferredLifeTimepreferred life time in seconds (default 7 days)
validLifeTimevalid life time in seconds (default 30 days)
onLinkFlagon link flag
autonomousFlagautonomous link flag
routerAddrFlagrouter address flag (for Mobile IPv6)

Definition at line 26 of file radvd-prefix.cc.

ns3::RadvdPrefix::~RadvdPrefix ( )

Destructor.

Definition at line 37 of file radvd-prefix.cc.

Member Function Documentation

Ipv6Address ns3::RadvdPrefix::GetNetwork ( ) const

Get network prefix.

Returns
network prefix

Definition at line 41 of file radvd-prefix.cc.

References m_network.

uint32_t ns3::RadvdPrefix::GetPreferredLifeTime ( ) const

Get preferred lifetime.

Returns
lifetime

Definition at line 71 of file radvd-prefix.cc.

References m_preferredLifeTime.

uint8_t ns3::RadvdPrefix::GetPrefixLength ( ) const

Get prefix length.

Returns
prefix length

Definition at line 51 of file radvd-prefix.cc.

References m_prefixLength.

uint32_t ns3::RadvdPrefix::GetValidLifeTime ( ) const

Get valid lifetime.

Returns
lifetime

Definition at line 61 of file radvd-prefix.cc.

References m_validLifeTime.

bool ns3::RadvdPrefix::IsAutonomousFlag ( ) const

Is autonomous flag ?

Returns
true if autonomous is activated, false otherwise

Definition at line 91 of file radvd-prefix.cc.

References m_autonomousFlag.

bool ns3::RadvdPrefix::IsOnLinkFlag ( ) const

Is on-link flag ?

Returns
true if on-link is activated, false otherwise

Definition at line 81 of file radvd-prefix.cc.

References m_onLinkFlag.

bool ns3::RadvdPrefix::IsRouterAddrFlag ( ) const

Is router address flag ?

Returns
true if router address is activated, false otherwise

Definition at line 101 of file radvd-prefix.cc.

References m_routerAddrFlag.

void ns3::RadvdPrefix::SetAutonomousFlag ( bool  autonomousFlag)

Set autonomous flag.

Parameters
autonomousFlagvalue

Definition at line 96 of file radvd-prefix.cc.

References m_autonomousFlag.

void ns3::RadvdPrefix::SetNetwork ( Ipv6Address  network)

Set network prefix.

Parameters
networknetwork prefix

Definition at line 46 of file radvd-prefix.cc.

References m_network.

void ns3::RadvdPrefix::SetOnLinkFlag ( bool  onLinkFlag)

Set on-link flag.

Parameters
onLinkFlagvalue

Definition at line 86 of file radvd-prefix.cc.

References m_onLinkFlag.

void ns3::RadvdPrefix::SetPreferredLifeTime ( uint32_t  preferredLifeTime)

Set preferred lifetime.

Parameters
preferredLifeTimelifetime

Definition at line 76 of file radvd-prefix.cc.

References m_preferredLifeTime.

void ns3::RadvdPrefix::SetPrefixLength ( uint8_t  prefixLength)

Set prefix length.

Parameters
prefixLengthprefix length

Definition at line 56 of file radvd-prefix.cc.

References m_prefixLength.

void ns3::RadvdPrefix::SetRouterAddrFlag ( bool  routerAddrFlag)

Set router address flag.

Parameters
routerAddrFlagvalue

Definition at line 106 of file radvd-prefix.cc.

References m_routerAddrFlag.

void ns3::RadvdPrefix::SetValidLifeTime ( uint32_t  validLifeTime)

Set valid lifetime.

Parameters
validLifeTimelifetime

Definition at line 66 of file radvd-prefix.cc.

References m_validLifeTime.

Member Data Documentation

bool ns3::RadvdPrefix::m_autonomousFlag
private

Autonomous flag, it is used for autonomous address configuration (RFC 2462).

Definition at line 170 of file radvd-prefix.h.

Referenced by IsAutonomousFlag(), and SetAutonomousFlag().

Ipv6Address ns3::RadvdPrefix::m_network
private

Network prefix.

Definition at line 145 of file radvd-prefix.h.

Referenced by GetNetwork(), and SetNetwork().

bool ns3::RadvdPrefix::m_onLinkFlag
private

On link flag, indicates that this prefix can be used for on-link determination.

Definition at line 165 of file radvd-prefix.h.

Referenced by IsOnLinkFlag(), and SetOnLinkFlag().

uint32_t ns3::RadvdPrefix::m_preferredLifeTime
private

Preferred time.

Definition at line 155 of file radvd-prefix.h.

Referenced by GetPreferredLifeTime(), and SetPreferredLifeTime().

uint8_t ns3::RadvdPrefix::m_prefixLength
private

Prefix length.

Definition at line 150 of file radvd-prefix.h.

Referenced by GetPrefixLength(), and SetPrefixLength().

bool ns3::RadvdPrefix::m_routerAddrFlag
private

Router address flag, indicates that router address is sent instead of network prefix as is required by Mobile IPv6.

Definition at line 176 of file radvd-prefix.h.

Referenced by IsRouterAddrFlag(), and SetRouterAddrFlag().

uint32_t ns3::RadvdPrefix::m_validLifeTime
private

Valid time.

Definition at line 160 of file radvd-prefix.h.

Referenced by GetValidLifeTime(), and SetValidLifeTime().


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