31 : m_network (network),
32 m_prefixLength (prefixLength),
33 m_preferredLifeTime (preferredLifeTime),
34 m_validLifeTime (validLifeTime),
35 m_onLinkFlag (onLinkFlag),
36 m_autonomousFlag (autonomousFlag),
37 m_routerAddrFlag (routerAddrFlag)
39 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)
NS_LOG_COMPONENT_DEFINE("GrantedTimeWindowMpiInterface")
Ipv6Address GetNetwork() const
Get network prefix.
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.
bool IsRouterAddrFlag() const
Is router address flag ?
void SetAutonomousFlag(bool autonomousFlag)
Set autonomous flag.
uint32_t GetPreferredLifeTime() const
Get preferred lifetime.
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.
Describes an IPv6 address.
uint32_t GetValidLifeTime() const
Get valid lifetime.
~RadvdPrefix()
Destructor.
uint8_t GetPrefixLength() const
Get prefix length.
Ipv6Address m_network
Network prefix.
bool IsAutonomousFlag() const
Is autonomous flag ?