30 : m_network (network),
31 m_prefixLength (prefixLength),
32 m_preferredLifeTime (preferredLifeTime),
33 m_validLifeTime (validLifeTime),
34 m_onLinkFlag (onLinkFlag),
35 m_autonomousFlag (autonomousFlag),
36 m_routerAddrFlag (routerAddrFlag)
38 NS_LOG_FUNCTION (
this << network << prefixLength << preferredLifeTime << validLifeTime << onLinkFlag << autonomousFlag << routerAddrFlag);
void SetValidLifeTime(uint32_t validLifeTime)
Set valid lifetime.
bool m_onLinkFlag
On link flag, indicates that this prefix can be used for on-link determination.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
bool IsRouterAddrFlag() const
Is router address flag ?
bool m_autonomousFlag
Autonomous flag, it is used for autonomous address configuration (RFC 2462).
uint32_t m_preferredLifeTime
Preferred time.
void SetPrefixLength(uint8_t prefixLength)
Set prefix length.
void SetOnLinkFlag(bool onLinkFlag)
Set on-link flag.
uint8_t m_prefixLength
Prefix length.
void SetPreferredLifeTime(uint32_t preferredLifeTime)
Set preferred lifetime.
void SetAutonomousFlag(bool autonomousFlag)
Set autonomous flag.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetNetwork(Ipv6Address network)
Set network prefix.
void SetRouterAddrFlag(bool routerAddrFlag)
Set router address flag.
bool IsOnLinkFlag() const
Is on-link flag ?
bool m_routerAddrFlag
Router address flag, indicates that router address is sent instead of network prefix as is required b...
uint32_t m_validLifeTime
Valid time.
RadvdPrefix(Ipv6Address network, uint8_t prefixLength, uint32_t preferredLifeTime=604800, uint32_t validLifeTime=2592000, bool onLinkFlag=true, bool autonomousFlag=true, bool routerAddrFlag=false)
Constructor.
bool IsAutonomousFlag() const
Is autonomous flag ?
Describes an IPv6 address.
~RadvdPrefix()
Destructor.
uint8_t GetPrefixLength() const
Get prefix length.
Ipv6Address m_network
Network prefix.
uint32_t GetPreferredLifeTime() const
Get preferred lifetime.
Ipv6Address GetNetwork() const
Get network prefix.
uint32_t GetValidLifeTime() const
Get valid lifetime.