IsUnspecified() const
Indicates whether or not the Interface Identifier is unspecified.
IsReserved() const
Indicates whether or not the Interface Identifier is reserved (RFC 5453).
IsSubnetRouterAnycast() const
Indicates whether or not the Interface Identifier is Subnet-Router Anycast (RFC 4291).
IsReservedSubnetAnycast() const
Indicates whether or not the Interface Identifier is Reserved Subnet Anycast (RFC 2526).
GenerateRandom()
Generates and sets the Interface Identifier to a crypto-secure random byte sequence.
GetBytes() const
Gets the Interface Identifier as a pointer to a byte array.
SetBytes()
Sets the Interface Identifier from a given byte array.
SetFromExtAddress()
Sets the Interface Identifier from a given IEEE 802.15.4 Extended Address.
ConvertToExtAddress() const
Converts the Interface Identifier to an IEEE 802.15.4 Extended Address.
ConvertToMacAddress() const
Converts the Interface Identifier to an IEEE 802.15.4 MAC Address.
SetToLocator()
Sets the Interface Identifier to Routing/Anycast Locator pattern `0000:00ff:fe00:xxxx` with a given locator (RLOC16 or ALOC16) value.
IsLocator() const
Indicates whether or not the Interface Identifier matches the locator pattern `0000:00ff:fe00:xxxx`.
IsRoutingLocator() const
Indicates whether or not the Interface Identifier (IID) matches a Routing Locator (RLOC). In addition to checking that the IID matches the locator pattern (`0000:00ff:fe00:xxxx`), this method also checks that the locator value is a valid RLOC16.
IsAnycastLocator() const
Indicates whether or not the Interface Identifier (IID) matches an Anycast Locator (ALOC). In addition to checking that the IID matches the locator pattern (`0000:00ff:fe00:xxxx`), this method also checks that the locator value is any valid ALOC16 (0xfc00 - 0xfcff).
IsAnycastServiceLocator() const
Indicates whether or not the Interface Identifier (IID) matches a Service Anycast Locator (ALOC). In addition to checking that the IID matches the locator pattern (`0000:00ff:fe00:xxxx`), this method also checks that the locator value is a valid Service ALOC16 (0xfc10 – 0xfc2f).
GetLocator() const
Gets the Interface Identifier (IID) address locator fields. Assumes the IID to match the locator pattern `0000:00ff:fe00:xxxx` (does not explicitly check this) and returns the last `uint16` portion of the IID.
SetLocator()
Sets the Interface Identifier (IID) address locator field. Unlike `SetToLocator()`, this method only changes the last 2 bytes of the IID and keeps the rest of the address as before.
ApplyPrefix()
Applies a prefix to IID. If the prefix length is longer than 64 bits, the prefix bits after 64 are written into the IID. This method only changes the bits in IID up the prefix length and keeps the rest of the bits in IID as before.
ToString() const
Converts an Interface Identifier to a string.