Describes an IPv6 prefix. It is just a bitmask like Ipv4Mask.
More...
#include <ipv6-address.h>
List of all members.
Detailed Description
Describes an IPv6 prefix. It is just a bitmask like Ipv4Mask.
- See also:
- Ipv6Address
Constructor & Destructor Documentation
| ns3::Ipv6Prefix::Ipv6Prefix |
( |
uint8_t |
prefix[16] | ) |
|
Constructs an Ipv6Prefix by using the input 16 bytes.
- Parameters:
-
| ns3::Ipv6Prefix::Ipv6Prefix |
( |
char const * |
prefix | ) |
|
Constructs an Ipv6Prefix by using the input string.
- Parameters:
-
| ns3::Ipv6Prefix::Ipv6Prefix |
( |
uint8_t |
prefix | ) |
|
Constructs an Ipv6Prefix by using the input number of bits.
- Parameters:
-
| prefix | number of bits of the prefix (0 - 128) |
- Note:
- A valid number of bits is between 0 and 128).
References NS_ASSERT.
| ns3::Ipv6Prefix::Ipv6Prefix |
( |
Ipv6Prefix const & |
prefix | ) |
|
Copy constructor.
- Parameters:
-
| ns3::Ipv6Prefix::Ipv6Prefix |
( |
Ipv6Prefix const * |
prefix | ) |
|
Copy constructor.
- Parameters:
-
Member Function Documentation
| void ns3::Ipv6Prefix::GetBytes |
( |
uint8_t |
buf[16] | ) |
const |
Get the bytes corresponding to the prefix.
- Parameters:
-
| buf | buffer to store the data |
Get the loopback prefix ( /128).
- Returns:
- a Ipv6Prefix corresponding to loopback prefix
| uint8_t ns3::Ipv6Prefix::GetPrefixLength |
( |
void |
| ) |
const |
| bool ns3::Ipv6Prefix::IsEqual |
( |
const Ipv6Prefix & |
other | ) |
const |
| void ns3::Ipv6Prefix::Print |
( |
std::ostream & |
os | ) |
const |
Print this address to the given output stream.
The print format is in the typical "2001:660:4701::1".
- Parameters:
-
| os | the output stream to which this Ipv6Address is printed |
The documentation for this class was generated from the following files:
- src/network/utils/ipv6-address.h
- src/network/utils/ipv6-address.cc