Searched refs:ifAddrs (Results 1 – 2 of 2) sorted by relevance
68 struct ifaddrs *ifAddrs = nullptr; in otPlatInfraIfHasAddress() local70 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() local309 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() local341 if (getifaddrs(&ifAddrs) < 0) in HasLinkLocalAddress()[all …]
1579 struct ifaddrs *ifAddrs = nullptr; local1589 VerifyOrExit(getifaddrs(&ifAddrs) == 0);1590 for (struct ifaddrs *ifAddr = ifAddrs; ifAddr != nullptr; ifAddr = ifAddr->ifa_next)1639 if (ifAddrs)1641 freeifaddrs(ifAddrs);