Home
last modified time | relevance | path

Searched refs:prefixLength (Results 1 – 3 of 3) sorted by relevance

/openthread-2.7.6/tests/unit/
Dtest_ip_address.cpp263 …for (uint8_t prefixLength = 0; prefixLength <= sizeof(ot::Ip6::Address) * CHAR_BIT; prefixLength++) in TestIp6AddressSetPrefix() local
266 address.SetPrefix(prefix, prefixLength); in TestIp6AddressSetPrefix()
267 printf(" prefix-len:%-3d --> %s\n", prefixLength, address.ToString().AsCString()); in TestIp6AddressSetPrefix()
268 …VerifyOrQuit(CheckPrefix(address, prefix, prefixLength), "Prefix does not match after SetPrefix()"… in TestIp6AddressSetPrefix()
269 VerifyOrQuit(CheckInterfaceId(address, allZeroAddress, prefixLength), in TestIp6AddressSetPrefix()
273 address.SetPrefix(prefix, prefixLength); in TestIp6AddressSetPrefix()
274 …VerifyOrQuit(CheckPrefix(address, prefix, prefixLength), "Prefix does not match after SetPrefix()"… in TestIp6AddressSetPrefix()
275 VerifyOrQuit(CheckInterfaceId(address, allOneAddress, prefixLength), in TestIp6AddressSetPrefix()
298 for (uint8_t prefixLength = 1; prefixLength <= ot::Ip6::Prefix::kMaxLength; prefixLength++) in TestIp6Prefix() local
300 prefix.Set(prefixBytes, prefixLength); in TestIp6Prefix()
[all …]
/openthread-2.7.6/src/core/thread/
Dnetwork_data_leader.cpp257 uint8_t prefixLength = prefixTlv->GetPrefixLength(); in ExternalRouteLookup() local
265 if (!aDestination.MatchesPrefix(prefixTlv->GetPrefix(), prefixLength)) in ExternalRouteLookup()
270 if ((bestRouteEntry != nullptr) && (prefixLength <= bestMatchLength)) in ExternalRouteLookup()
288 bestMatchLength = prefixLength; in ExternalRouteLookup()
/openthread-2.7.6/src/ncp/
Dncp_base_mtd.cpp1019 uint8_t prefixLength; in HandlePropertyInsert() local
1027 SuccessOrExit(error = mDecoder.ReadUint8(prefixLength)); in HandlePropertyInsert()
1031 borderRouterConfig.mPrefix.mLength = prefixLength; in HandlePropertyInsert()
1061 uint8_t prefixLength; in HandlePropertyRemove() local
1068 SuccessOrExit(error = mDecoder.ReadUint8(prefixLength)); in HandlePropertyRemove()
1070 ip6Prefix.mLength = prefixLength; in HandlePropertyRemove()
1895 uint8_t prefixLength; in HandlePropertySet() local
1898 SuccessOrExit(error = mDecoder.ReadUint8(prefixLength)); in HandlePropertySet()
1899 VerifyOrExit(prefixLength == OT_IP6_PREFIX_BITSIZE, error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
2217 uint8_t prefixLength; in HandlePropertyInsert() local
[all …]