Home
last modified time | relevance | path

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

/openthread-3.6.0/tests/unit/
Dtest_dns_client.cpp517 otNetifAddress netifAddr; in TestDnsClient() local
519 memset(&netifAddr, 0, sizeof(netifAddr)); in TestDnsClient()
520 SuccessOrQuit(AsCoreType(&netifAddr.mAddress).FromString(addrString)); in TestDnsClient()
521 netifAddr.mPrefixLength = 64; in TestDnsClient()
522 netifAddr.mAddressOrigin = OT_ADDRESS_ORIGIN_MANUAL; in TestDnsClient()
523 netifAddr.mPreferred = true; in TestDnsClient()
524 netifAddr.mValid = true; in TestDnsClient()
525 SuccessOrQuit(otIp6AddUnicastAddress(sInstance, &netifAddr)); in TestDnsClient()
527 SuccessOrQuit(addresses.PushBack(AsCoreType(&netifAddr.mAddress))); in TestDnsClient()
/openthread-3.6.0/src/core/utils/
Dslaac_address.cpp227 for (const Ip6::Netif::UnicastAddress &netifAddr : Get<ThreadNetif>().GetUnicastAddresses()) in AddAddresses() local
229 if (DoesConfigMatchNetifAddr(config, netifAddr)) in AddAddresses()
/openthread-3.6.0/src/ncp/
Dncp_base_mtd.cpp1941 otNetifAddress netifAddr; in HandlePropertyInsert() local
1945 SuccessOrExit(error = mDecoder.ReadIp6Address(netifAddr.mAddress)); in HandlePropertyInsert()
1946 SuccessOrExit(error = mDecoder.ReadUint8(netifAddr.mPrefixLength)); in HandlePropertyInsert()
1950 netifAddr.mAddressOrigin = OT_ADDRESS_ORIGIN_MANUAL; in HandlePropertyInsert()
1951 netifAddr.mPreferred = (preferredLifetime != 0); in HandlePropertyInsert()
1952 netifAddr.mValid = (validLifetime != 0); in HandlePropertyInsert()
1954 error = otIp6AddUnicastAddress(mInstance, &netifAddr); in HandlePropertyInsert()