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