Public Types | Public Member Functions | Friends

ns3::Ipv6InterfaceAddress Class Reference
[Address]

IPv6 address associated with an interface. More...

#include <ipv6-interface-address.h>

Collaboration diagram for ns3::Ipv6InterfaceAddress:
Collaboration graph
[legend]

List of all members.

Public Types

enum  State_e {
  TENTATIVE, DEPRECATED, PREFERRED, PERMANENT,
  HOMEADDRESS, TENTATIVE_OPTIMISTIC, INVALID
}
 

State of an address associated with an interface.

More...
enum  Scope_e { HOST, LINKLOCAL, GLOBAL }
 

Scope of address.

More...

Public Member Functions

 Ipv6InterfaceAddress ()
 Default constructor.
 Ipv6InterfaceAddress (Ipv6Address address)
 Constructor. Prefix is 64 by default.
 Ipv6InterfaceAddress (Ipv6Address address, Ipv6Prefix prefix)
 Constructor.
 Ipv6InterfaceAddress (const Ipv6InterfaceAddress &o)
 Copy constructor.
 ~Ipv6InterfaceAddress ()
 Destructor.
void SetAddress (Ipv6Address address)
 Set IPv6 address (and scope).
Ipv6Address GetAddress () const
 Get the IPv6 address.
Ipv6Prefix GetPrefix () const
 Get the IPv6 prefix.
void SetState (Ipv6InterfaceAddress::State_e state)
 Set the state.
Ipv6InterfaceAddress::State_e GetState () const
 Get the address state.
void SetScope (Ipv6InterfaceAddress::Scope_e scope)
 Set the scope.
Ipv6InterfaceAddress::Scope_e GetScope () const
 Get address scope.
void SetNsDadUid (uint32_t uid)
 Set the latest DAD probe packet UID.
uint32_t GetNsDadUid () const
 Get the latest DAD probe packet UID.

Friends

bool operator== (Ipv6InterfaceAddress const &a, Ipv6InterfaceAddress const &b)
bool operator!= (Ipv6InterfaceAddress const &a, Ipv6InterfaceAddress const &b)

Detailed Description

IPv6 address associated with an interface.


Member Enumeration Documentation

Scope of address.

Enumerator:
HOST 

Localhost (::1/128)

LINKLOCAL 

Link-local address (fe80::/64)

GLOBAL 

Global address (2000::/3)

State of an address associated with an interface.

Enumerator:
TENTATIVE 

Address is tentative, no packet can be sent unless DAD finished

DEPRECATED 

Address is deprecated and should not be used

PREFERRED 

Preferred address

PERMANENT 

Permanent address

HOMEADDRESS 

Address is a HomeAddress

TENTATIVE_OPTIMISTIC 

Address is tentative but we are optimistic so we can send packet even if DAD is not yet finished

INVALID 

Invalid state (after a DAD failed)


Constructor & Destructor Documentation

ns3::Ipv6InterfaceAddress::Ipv6InterfaceAddress ( Ipv6Address  address  ) 

Constructor. Prefix is 64 by default.

Parameters:
address the IPv6 address to set
ns3::Ipv6InterfaceAddress::Ipv6InterfaceAddress ( Ipv6Address  address,
Ipv6Prefix  prefix 
)

Constructor.

Parameters:
address IPv6 address to set
prefix IPv6 prefix
ns3::Ipv6InterfaceAddress::Ipv6InterfaceAddress ( const Ipv6InterfaceAddress o  ) 

Copy constructor.

Parameters:
o object to copy

Member Function Documentation

Ipv6Address ns3::Ipv6InterfaceAddress::GetAddress (  )  const

Get the IPv6 address.

Returns:
IPv6 address
uint32_t ns3::Ipv6InterfaceAddress::GetNsDadUid (  )  const

Get the latest DAD probe packet UID.

Returns:
uid
Ipv6Prefix ns3::Ipv6InterfaceAddress::GetPrefix (  )  const

Get the IPv6 prefix.

Returns:
IPv6 prefix
Ipv6InterfaceAddress::Scope_e ns3::Ipv6InterfaceAddress::GetScope (  )  const

Get address scope.

Returns:
scope
Ipv6InterfaceAddress::State_e ns3::Ipv6InterfaceAddress::GetState (  )  const

Get the address state.

Returns:
address state
void ns3::Ipv6InterfaceAddress::SetAddress ( Ipv6Address  address  ) 

Set IPv6 address (and scope).

Parameters:
address IPv6 address to set
void ns3::Ipv6InterfaceAddress::SetNsDadUid ( uint32_t  uid  ) 

Set the latest DAD probe packet UID.

Parameters:
uid packet uid
void ns3::Ipv6InterfaceAddress::SetScope ( Ipv6InterfaceAddress::Scope_e  scope  ) 

Set the scope.

Parameters:
scope the scope of address
void ns3::Ipv6InterfaceAddress::SetState ( Ipv6InterfaceAddress::State_e  state  ) 

Set the state.

Parameters:
state the state

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