/openthread-latest/tests/unit/ |
D | test_ip_address.cpp | 773 Ip6::Address ip6Address; in TestIp4MappedIp6Address() local 780 ip6Address.SetToIp4Mapped(expectedIp4Address); in TestIp4MappedIp6Address() 782 printf("IPv4-mapped IPv6 address: %s\n", ip6Address.ToString().AsCString()); in TestIp4MappedIp6Address() 784 VerifyOrQuit(ip6Address.IsIp4Mapped()); in TestIp4MappedIp6Address() 785 VerifyOrQuit(ip6Address == expectedIp6Address); in TestIp4MappedIp6Address() 787 SuccessOrQuit(ip4Address.ExtractFromIp4MappedIp6Address(ip6Address)); in TestIp4MappedIp6Address() 792 SuccessOrQuit(ip6Address.FromString(invalidIp4MappedAddr)); in TestIp4MappedIp6Address() 793 …printf("Invalid IPv4-mapped IPv6 address: %s -> %s\n", invalidIp4MappedAddr, ip6Address.ToString()… in TestIp4MappedIp6Address() 794 VerifyOrQuit(!ip6Address.IsIp4Mapped()); in TestIp4MappedIp6Address() 795 VerifyOrQuit(ip4Address.ExtractFromIp4MappedIp6Address(ip6Address) != kErrorNone); in TestIp4MappedIp6Address() [all …]
|
D | test_nat64.cpp | 185 const uint8_t ip6Address[] = {0xfd, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in TestNat64() local 190 nat64prefix.Set(ip6Address, 96); in TestNat64() 343 const uint8_t ip6Address[] = {0xfd, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in TestPacketCounter() local 348 nat64prefix.Set(ip6Address, 96); in TestPacketCounter() 413 const uint8_t ip6Address[] = {0xfd, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in TestPacketCounter() local 418 nat64prefix.Set(ip6Address, 96); in TestPacketCounter()
|
D | test_child.cpp | 135 for (const char *ip6Address : ip6Addresses) in TestChildIp6Address() local 138 SuccessOrQuit(addresses[numAddresses++].FromString(ip6Address)); in TestChildIp6Address()
|
D | test_mdns.cpp | 686 Ip6::Address ip6Address; in ValidateHeader() local 688 SuccessOrQuit(ip6Address.FromString(kDeviceIp6Address)); in ValidateHeader() 691 VerifyOrQuit(mUnicastDest.GetAddress() == ip6Address); in ValidateHeader()
|
/openthread-latest/src/cli/ |
D | cli_mesh_diag.cpp | 373 otIp6Address ip6Address; in HandleMeshDiagDiscoverDone() local 377 … while (otMeshDiagGetNextIp6Address(aRouterInfo->mIp6AddrIterator, &ip6Address) == OT_ERROR_NONE) in HandleMeshDiagDiscoverDone() 380 OutputIp6AddressLine(ip6Address); in HandleMeshDiagDiscoverDone() 517 otIp6Address ip6Address; in HandleMeshDiagQueryChildIp6Addrs() local 524 while (otMeshDiagGetNextIp6Address(aIp6AddrIterator, &ip6Address) == OT_ERROR_NONE) in HandleMeshDiagQueryChildIp6Addrs() 527 OutputIp6AddressLine(ip6Address); in HandleMeshDiagQueryChildIp6Addrs()
|
D | cli.cpp | 1879 otIp6Address ip6Address; in Process() local 1890 … while (otThreadGetChildNextIp6Address(GetInstancePtr(), childIndex, &iterator, &ip6Address) == in Process() 1894 OutputIp6AddressLine(ip6Address); in Process()
|
/openthread-latest/src/core/thread/ |
D | child.cpp | 273 for (const Ip6::Address &ip6Address : mIp6Addresses) in GetDomainUnicastAddress() local 275 if (Get<BackboneRouter::Leader>().IsDomainUnicast(ip6Address)) in GetDomainUnicastAddress() 277 aAddress = ip6Address; in GetDomainUnicastAddress()
|
/openthread-latest/src/posix/platform/ |
D | infra_if.cpp | 688 otIp6Address ip6Address; in DiscoverNat64PrefixDone() local 696 memcpy(&ip6Address.mFields.m8, &ip6Addr->sin6_addr.s6_addr, OT_IP6_ADDRESS_SIZE); in DiscoverNat64PrefixDone() 701 otIp4ExtractFromIp6Address(length, &ip6Address, &ip4Address); in DiscoverNat64PrefixDone() 719 otIp4ExtractFromIp6Address(dupLength, &ip6Address, &dupIp4Address); in DiscoverNat64PrefixDone() 729 otIp6GetPrefix(&ip6Address, length, &prefix); in DiscoverNat64PrefixDone()
|
/openthread-latest/src/ncp/ |
D | ncp_base_ftd.cpp | 270 otIp6Address ip6Address; in HandlePropertyGet() local 290 …while (otThreadGetChildNextIp6Address(mInstance, childIndex, &iterator, &ip6Address) == OT_ERROR_N… in HandlePropertyGet() 292 SuccessOrExit(error = mEncoder.WriteIp6Address(ip6Address)); in HandlePropertyGet()
|