Home
last modified time | relevance | path

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

/openthread-latest/tests/unit/
Dtest_ip_address.cpp406 … for (size_t prefixLength = 0; prefixLength <= sizeof(Ip6::Address) * kBitsPerByte; prefixLength++) in TestIp6AddressSetPrefix() local
409 ip6Prefix.Set(prefix, prefixLength); in TestIp6AddressSetPrefix()
413 printf(" prefix-len:%-3zu --> %s\n", prefixLength, address.ToString().AsCString()); in TestIp6AddressSetPrefix()
414 …VerifyOrQuit(CheckPrefix(address, prefix, prefixLength), "Prefix does not match after SetPrefix()"… in TestIp6AddressSetPrefix()
415 VerifyOrQuit(CheckInterfaceId(address, allZeroAddress, prefixLength), in TestIp6AddressSetPrefix()
420 …VerifyOrQuit(CheckPrefix(address, prefix, prefixLength), "Prefix does not match after SetPrefix()"… in TestIp6AddressSetPrefix()
421 VerifyOrQuit(CheckInterfaceId(address, allOneAddress, prefixLength), in TestIp6AddressSetPrefix()
426 … VerifyOrQuit(CheckPrefixInIid(address.GetIid(), prefix, prefixLength), "IID is not correct"); in TestIp6AddressSetPrefix()
427 VerifyOrQuit(CheckInterfaceId(address, allZeroAddress, prefixLength), in TestIp6AddressSetPrefix()
432 … VerifyOrQuit(CheckPrefixInIid(address.GetIid(), prefix, prefixLength), "IID is not correct"); in TestIp6AddressSetPrefix()
[all …]
/openthread-latest/src/core/thread/
Dnetwork_data_leader.cpp383 uint8_t prefixLength = prefixTlv->GetPrefixLength(); in ExternalRouteLookup() local
391 if ((bestRouteEntry != nullptr) && (prefixLength <= bestMatchLength)) in ExternalRouteLookup()
401 if ((bestRouteEntry == nullptr) || (prefixLength > bestMatchLength) || in ExternalRouteLookup()
405 bestMatchLength = prefixLength; in ExternalRouteLookup()
/openthread-latest/src/ncp/
Dncp_base_mtd.cpp998 uint8_t prefixLength; in HandlePropertyInsert() local
1006 SuccessOrExit(error = mDecoder.ReadUint8(prefixLength)); in HandlePropertyInsert()
1010 borderRouterConfig.mPrefix.mLength = prefixLength; in HandlePropertyInsert()
1040 uint8_t prefixLength; in HandlePropertyRemove() local
1047 SuccessOrExit(error = mDecoder.ReadUint8(prefixLength)); in HandlePropertyRemove()
1049 ip6Prefix.mLength = prefixLength; in HandlePropertyRemove()
1974 uint8_t prefixLength; in HandlePropertySet() local
1977 SuccessOrExit(error = mDecoder.ReadUint8(prefixLength)); in HandlePropertySet()
1978 VerifyOrExit(prefixLength == OT_IP6_PREFIX_BITSIZE, error = OT_ERROR_INVALID_ARGS); in HandlePropertySet()
2302 uint8_t prefixLength; in HandlePropertyInsert() local
[all …]