Home
last modified time | relevance | path

Searched refs:ifAddrs (Results 1 – 2 of 2) sorted by relevance

/openthread-3.4.0/src/posix/platform/
Dinfra_if.cpp68 struct ifaddrs *ifAddrs = nullptr; in otPlatInfraIfHasAddress() local
70 VerifyOrDie(getifaddrs(&ifAddrs) != -1, OT_EXIT_ERROR_ERRNO); in otPlatInfraIfHasAddress()
72 for (struct ifaddrs *addr = ifAddrs; addr != nullptr; addr = addr->ifa_next) in otPlatInfraIfHasAddress()
89 freeifaddrs(ifAddrs); in otPlatInfraIfHasAddress()
303 struct ifaddrs *ifAddrs = nullptr; in CountAddresses() local
309 if (getifaddrs(&ifAddrs) < 0) in CountAddresses()
315 for (struct ifaddrs *addr = ifAddrs; addr != nullptr; addr = addr->ifa_next) in CountAddresses()
330 freeifaddrs(ifAddrs); in CountAddresses()
339 struct ifaddrs *ifAddrs = nullptr; in HasLinkLocalAddress() local
341 if (getifaddrs(&ifAddrs) < 0) in HasLinkLocalAddress()
[all …]
Dnetif.cpp1579 struct ifaddrs *ifAddrs = nullptr; local
1589 VerifyOrExit(getifaddrs(&ifAddrs) == 0);
1590 for (struct ifaddrs *ifAddr = ifAddrs; ifAddr != nullptr; ifAddr = ifAddr->ifa_next)
1639 if (ifAddrs)
1641 freeifaddrs(ifAddrs);