Lines Matching full:a

18  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
76 … * Generates and sets the Network Prefix to a crypto-secure random Unique Local Address (ULA) based
79 * @retval kErrorNone Successfully generated a random ULA Network Prefix
93 static constexpr uint8_t kMaxSize = OT_IP6_ADDRESS_SIZE; ///< Max (byte) size of a prefix.
94 …static constexpr uint8_t kMaxLength = kMaxSize * kBitsPerByte; ///< Max length of a prefix in bits.
104 * Gets the prefix as a pointer to a byte array.
106 * @returns A pointer to a byte array containing the Prefix.
134 * @param[in] aPrefix A pointer to buffer containing the prefix bytes.
140 * Sets the prefix from a given Network Prefix.
142 * @param[in] aNetworkPrefix A Network Prefix.
149 * @param[in] aSubnetId A 16-bit subnet ID.
174 * Indicates whether the prefix is a Link-Local prefix.
176 * @retval TRUE The prefix is a Link-Local prefix.
177 * @retval FALSE The prefix is not a Link-Local prefix.
182 * Indicates whether the prefix is a Multicast prefix.
184 * @retval TRUE The prefix is a Multicast prefix.
185 * @retval FALSE The prefix is not a Multicast prefix.
190 * Indicates whether the prefix is a Unique-Local prefix.
192 * @retval TRUE The prefix is a Unique-Local prefix.
193 * @retval FALSE The prefix is not a Unique-Local prefix.
198 * Indicates whether the prefix is equal to a given prefix.
200 * @param[in] aPrefixBytes A pointer to buffer containing the prefix bytes to compare with.
209 * Indicates whether the prefix contains a sub-prefix.
211 * @param[in] aSubPrefix A sub-prefix.
219 * Indicates whether the prefix contains a sub-prefix (given as a `NetworkPrefix`).
221 * @param[in] aSubPrefix A sub-prefix (as a `NetworkPrefix`).
254 * Converts a prefix length (in bits) to size (number of bytes).
256 * @param[in] aLength A prefix length (in bits).
265 * @param[in] aPrefixA A pointer to a byte array containing a first prefix.
266 * @param[in] aPrefixB A pointer to a byte array containing a second prefix.
274 * Indicates whether or not a given prefix length is valid for use as a NAT64 prefix.
276 … * A NAT64 prefix must have one of the following lengths: 32, 40, 48, 56, 64, or 96 (per RFC 6052).
280 * @retval TRUE If the prefix has a valid length for use as a NAT64 prefix.
281 * @retval FALSE If the prefix does not have a valid length for use as a NAT64 prefix.
286 * Indicates whether or not the prefix has a valid length for use as a NAT64 prefix.
288 … * A NAT64 prefix must have one of the following lengths: 32, 40, 48, 56, 64, or 96 (per RFC 6052).
290 * @retval TRUE If the prefix has a valid length for use as a NAT64 prefix.
291 * @retval FALSE If the prefix does not have a valid length for use as a NAT64 prefix.
296 * Parses a given IPv6 prefix string and sets the prefix.
298 * @param[in] aString A null-terminated string, with format "<prefix>/<plen>"
306 * Converts the prefix to a string.
315 * Converts the prefix to a string.
322 * @param[out] aBuffer A pointer to a char array to output the string (MUST NOT be `nullptr`).
371 * @retval TRUE If the Interface Identifier is a Subnet-Router Anycast address.
372 * @retval FALSE If the Interface Identifier is not a Subnet-Router Anycast address.
379 * @retval TRUE If the Interface Identifier is a Reserved Subnet Anycast address.
380 * @retval FALSE If the Interface Identifier is not a Reserved Subnet Anycast address.
385 * Generates and sets the Interface Identifier to a crypto-secure random byte sequence.
390 * Gets the Interface Identifier as a pointer to a byte array.
392 * @returns A pointer to a byte array (of size `kSize`) containing the Interface Identifier.
397 * Sets the Interface Identifier from a given byte array.
405 * Sets the Interface Identifier from a given IEEE 802.15.4 Extended Address.
414 …* @param[out] aExtAddress A reference to an Extended Address where the converted address is plac…
421 * @param[out] aMacAddress A reference to a MAC Address where the converted address is placed.
426 …Sets the Interface Identifier to Routing/Anycast Locator pattern `0000:00ff:fe00:xxxx` with a given
442 * Indicates whether or not the Interface Identifier (IID) matches a Routing Locator (RLOC).
445 * checks that the locator value is a valid RLOC16.
447 * @retval TRUE If the IID matches a RLOC address.
448 * @retval FALSE If the IID does not match a RLOC address.
458 * @retval TRUE If the IID matches a ALOC address.
459 * @retval FALSE If the IID does not match a ALOC address.
464 …* Indicates whether or not the Interface Identifier (IID) matches a Service Anycast Locator (ALOC).
467 * checks that the locator value is a valid Service ALOC16 (0xfc10 – 0xfc2f).
469 * @retval TRUE If the IID matches a ALOC address.
470 * @retval FALSE If the IID does not match a ALOC address.
495 * Applies a prefix to IID.
505 * Converts an Interface Identifier to a string.
560 * Gets the IPv6 address as a pointer to a byte array.
562 * @returns A pointer to a byte array containing the IPv6 address.
567 * Sets the IPv6 address from a given byte array.
591 * Indicates whether or not the IPv6 address is a Link-Local unicast address.
593 * @retval TRUE If the IPv6 address is a Link-Local unicast address.
594 * @retval FALSE If the IPv6 address is not a Link-Local unicast address.
599 … * Sets the IPv6 address to a Link-Local address with Interface Identifier generated from a given
602 * @param[in] aExtAddress A MAC Extended Address (used to generate the IID).
607 * Sets the IPv6 address to a Link-Local address with a given Interface Identifier.
616 * @retval TRUE If the IPv6 address is a multicast address.
617 * @retval FALSE If the IPv6 address scope is not a multicast address.
622 * Indicates whether or not the IPv6 address is a link-local multicast address.
624 * @retval TRUE If the IPv6 address is a link-local multicast address.
625 * @retval FALSE If the IPv6 address scope is not a link-local multicast address.
630 …* Indicates whether or not the IPv6 address is a link-local unicast or a link-local multicast addr…
632 * @retval TRUE If the IPv6 address is a link-local unicast or multicast address.
633 …* @retval FALSE If the IPv6 address is not a link-local unicast and not a link-local multicast ad…
638 …* Indicates whether or not the IPv6 address is a link-local all nodes multicast address (ff02::01).
640 * @retval TRUE If the IPv6 address is a link-local all nodes multicast address.
641 * @retval FALSE If the IPv6 address is not a link-local all nodes multicast address.
651 …* Indicates whether or not the IPv6 address is a link-local all routers multicast address (ff02::0…
653 * @retval TRUE If the IPv6 address is a link-local all routers multicast address.
654 * @retval FALSE If the IPv6 address is not a link-local all routers multicast address.
664 * Indicates whether or not the IPv6 address is a realm-local multicast address.
666 * @retval TRUE If the IPv6 address is a realm-local multicast address.
667 * @retval FALSE If the IPv6 address scope is not a realm-local multicast address.
672 …* Indicates whether or not the IPv6 address is a realm-local all nodes multicast address (ff03::01…
674 * @retval TRUE If the IPv6 address is a realm-local all nodes multicast address.
675 * @retval FALSE If the IPv6 address is not a realm-local all nodes multicast address.
685 …* Indicates whether or not the IPv6 address is a realm-local all routers multicast address (ff03::…
687 * @retval TRUE If the IPv6 address is a realm-local all routers multicast address.
688 * @retval FALSE If the IPv6 address is not a realm-local all routers multicast address.
698 …* Indicates whether or not the IPv6 address is a realm-local all MPL forwarders address (ff03::fc).
700 * @retval TRUE If the IPv6 address is a realm-local all MPL forwarders address.
701 * @retval FALSE If the IPv6 address is not a realm-local all MPL forwarders address.
719 … * Sets the IPv6 address to a Routing Locator (RLOC) IPv6 address with a given Network Prefix and
722 * @param[in] aNetworkPrefix A Network Prefix.
723 * @param[in] aRloc16 A RLOC16 value.
731 … * Sets the IPv6 address to a Anycast Locator (ALOC) IPv6 address with a given Network Prefix and
734 * @param[in] aNetworkPrefix A Network Prefix.
735 * @param[in] aAloc16 A ALOC16 value.
755 * Sets the IPv6 address to follow the IPv4-mapped IPv6 address for a given IPv4 address.
764 * @returns A reference to the Network Prefix.
772 * Gets a prefix of the IPv6 address with a given length.
775 * @param[out] aPrefix A reference to a prefix to output the fetched prefix.
780 * Indicates whether the IPv6 address matches a given prefix.
790 * Indicates whether the IPv6 address matches a given prefix.
792 * @param[in] aPrefix A buffer containing the prefix.
806 * @param[in] aPrefix A buffer containing the prefix.
814 * @param[in] aNetworkPrefix A Network Prefix.
831 * @param[in] aPrefix A buffer containing the prefix.
839 * @param[in] aNetworkPrefix A reference to a Network Prefix.
859 * @returns A reference to the Interface Identifier.
869 * @returns A reference to the Interface Identifier.
897 * Indicates whether address matches a given type filter.
907 …* Sets the IPv6 address by performing NAT64 address translation from a given IPv4 address as speci…
921 * @param[in] aString A pointer to the null-terminated string.
929 * Converts the IPv6 address to a string.
938 * Convert the IPv6 address to a C string.
945 * @param[out] aBuffer A pointer to a char array to output the string (MUST NOT be `nullptr`).