Home
last modified time | relevance | path

Searched refs:ip4Address (Results 1 – 6 of 6) sorted by relevance

/openthread-latest/tests/unit/
Dtest_nat64.cpp187 const uint8_t ip4Address[] = {192, 168, 123, 1}; in TestNat64() local
189 nat64cidr.Set(ip4Address, 32); in TestNat64()
345 const uint8_t ip4Address[] = {192, 168, 123, 1}; in TestPacketCounter() local
347 nat64cidr.Set(ip4Address, 32); in TestPacketCounter()
415 const uint8_t ip4Address[] = {192, 168, 124, 1}; in TestPacketCounter() local
417 nat64cidr.Set(ip4Address, 32); in TestPacketCounter()
Dtest_ip_address.cpp771 Ip4::Address ip4Address; in TestIp4MappedIp6Address() local
787 SuccessOrQuit(ip4Address.ExtractFromIp4MappedIp6Address(ip6Address)); in TestIp4MappedIp6Address()
788 VerifyOrQuit(ip4Address == expectedIp4Address); in TestIp4MappedIp6Address()
795 VerifyOrQuit(ip4Address.ExtractFromIp4MappedIp6Address(ip6Address) != kErrorNone); in TestIp4MappedIp6Address()
822 Ip4::Address ip4Address; in TestIp4Ip6Translation() local
826 ip4Address.SetBytes(kIp4Address); in TestIp4Ip6Translation()
839 address.SynthesizeFromIp4Address(prefix, ip4Address); in TestIp4Ip6Translation()
842ip4Address.ToString().AsCString(), address.ToString().AsCString(), testCase.mIp6Address, in TestIp4Ip6Translation()
850 const Ip4::Address expectedAddress = ip4Address; in TestIp4Ip6Translation()
/openthread-latest/src/posix/platform/
Dresolver.cpp305 otIp4Address ip4Address; in SetUpstreamDnsServers() local
308 if (otIp4FromIp4MappedIp6Address(&aUpstreamDnsServers[i], &ip4Address) == OT_ERROR_NONE) in SetUpstreamDnsServers()
310 mUpstreamDnsServerList[mUpstreamDnsServerCount] = ip4Address.mFields.m32; in SetUpstreamDnsServers()
Dinfra_if.cpp699 otIp4Address ip4Address; in DiscoverNat64PrefixDone() local
701 otIp4ExtractFromIp6Address(length, &ip6Address, &ip4Address); in DiscoverNat64PrefixDone()
702 if (otIp4IsAddressEqual(&ip4Address, &kWellKnownIpv4OnlyAddress1) || in DiscoverNat64PrefixDone()
703 otIp4IsAddressEqual(&ip4Address, &kWellKnownIpv4OnlyAddress2)) in DiscoverNat64PrefixDone()
720 if (otIp4IsAddressEqual(&dupIp4Address, &ip4Address)) in DiscoverNat64PrefixDone()
/openthread-latest/src/cli/
Dcli_utils.cpp601 otIp4Address ip4Address; in ParseToIp6Address() local
604 SuccessOrExit(aArg.ParseAsIp4Address(ip4Address)); in ParseToIp6Address()
605 SuccessOrExit(error = otNat64SynthesizeIp6Address(aInstance, &ip4Address, &aAddress)); in ParseToIp6Address()
/openthread-latest/src/core/net/
Ddnssd_server.cpp640 Ip4::Address ip4Address; in AppendARecord() local
642 SuccessOrExit(ip4Address.ExtractFromIp4MappedIp6Address(aAddress)); in AppendARecord()
646 aRecord.SetAddress(ip4Address); in AppendARecord()