NetBurner 3.5.6
PDF Version
IPV6_PREFIX Struct Reference

IPv6 prefix and address management element. More...

#include <ipv6_interface.h>

Inherits IPV6_ROOT_EL.

Public Member Functions

IPV6_PREFIXGetNext ()
 Get next prefix in list.
 
 IPV6_PREFIX ()
 Default constructor.
 
void CleanUpAndRemove ()
 Clean up and remove prefix from lists.
 
void free_element ()
 Free resources for this prefix.
 
bool OnLink (const IPADDR6 &ip)
 Check if given IP address is on-link for this prefix.
 
bool Prefered ()
 Check if this prefix is preferred.
 
eMY_ADDR_STATE GetState ()
 Get current state of this address.
 
virtual void ShowItem ()
 Display prefix information.
 
ePrefixSource Source ()
 Get the source of this prefix.
 
uint32_t RemainingValidTime ()
 Get remaining valid time for this prefix.
 
uint32_t GetRemainingDhcpLeaseTime ()
 Get remaining DHCP lease time.
 
uint32_t GetRemainingDhcpLeasePreferredTime ()
 Get remaining DHCP preferred time.
 
virtual bool AgeStillValidTest ()
 Check if prefix is still valid based on aging.
 
bool AgeStillPreferred ()
 Check if prefix is still preferred based on aging.
 
void CheckTenative ()
 Check tentative state and perform duplicate address detection.
 
- Public Member Functions inherited from IPV6_ROOT_EL
virtual ~IPV6_ROOT_EL ()
 Virtual destructor.
 

Public Attributes

eMY_ADDR_STATE m_state
 Current state of this address.
 
uint32_t time_to_lose_prefered_in_secs_from_establish
 Preferred lifetime from establishment.
 
uint32_t time_to_lose_valid_in_secs_from_establish
 Valid lifetime from establishment.
 
uint32_t time_established_in_secs
 When this prefix was established.
 
uint32_t max_valid_time_seen
 Maximum valid time seen (for IOL cleanup)
 
IPV6_ROUTERpRouter
 Router that established this prefix.
 
IPV6_DHCPDpDHCPD
 DHCP server that established this prefix.
 
uint8_t PrefixLen
 Prefix length in bits.
 
bool bValidForInterface
 Valid for this interface.
 
bool bOnLink
 On-link flag.
 
- Public Attributes inherited from IPV6_ROOT_EL
IPV6_ROOT_ELm_pNext
 Next element in list.
 
IPV6_ROOT_ELm_pPrev
 Previous element in list.
 
IPV6_ROOT_EL_CONTAINERm_pContainer
 Container that owns this element.
 
IPADDR6 m_IPAddress
 IPv6 address associated with this element.
 

Detailed Description

IPv6 prefix and address management element.

Manages IPv6 prefixes and addresses including their validity, timing, and source information.

Member Function Documentation

◆ AgeStillPreferred()

bool IPV6_PREFIX::AgeStillPreferred ( )

Check if prefix is still preferred based on aging.

Returns
true if prefix is still preferred

◆ AgeStillValidTest()

virtual bool IPV6_PREFIX::AgeStillValidTest ( )
virtual

Check if prefix is still valid based on aging.

Returns
true if prefix is still valid

Reimplemented from IPV6_ROOT_EL.

◆ GetNext()

IPV6_PREFIX * IPV6_PREFIX::GetNext ( )
inline

Get next prefix in list.

Returns
Pointer to next prefix

◆ GetRemainingDhcpLeasePreferredTime()

uint32_t IPV6_PREFIX::GetRemainingDhcpLeasePreferredTime ( )
inline

Get remaining DHCP preferred time.

Returns
Remaining preferred time in seconds

◆ GetRemainingDhcpLeaseTime()

uint32_t IPV6_PREFIX::GetRemainingDhcpLeaseTime ( )
inline

Get remaining DHCP lease time.

Returns
Remaining lease time in seconds

◆ GetState()

eMY_ADDR_STATE IPV6_PREFIX::GetState ( )
inline

Get current state of this address.

Returns
Current address state

◆ OnLink()

bool IPV6_PREFIX::OnLink ( const IPADDR6 & ip)

Check if given IP address is on-link for this prefix.

Parameters
ipIPv6 address to check
Returns
true if address is on-link

◆ Prefered()

bool IPV6_PREFIX::Prefered ( )

Check if this prefix is preferred.

Returns
true if prefix is preferred

◆ RemainingValidTime()

uint32_t IPV6_PREFIX::RemainingValidTime ( )
inline

Get remaining valid time for this prefix.

Returns
Remaining valid time in seconds

◆ Source()

ePrefixSource IPV6_PREFIX::Source ( )
inline

Get the source of this prefix.

Returns
Prefix source type

The documentation for this struct was generated from the following file: