Lines Matching refs:addrs
42 ifaddrs* addrs = nullptr; in TEST() local
44 ASSERT_EQ(0, getifaddrs(&addrs)); in TEST()
45 ASSERT_TRUE(addrs != nullptr); in TEST()
50 for (ifaddrs* addr = addrs; addr != nullptr; addr = addr->ifa_next) { in TEST()
73 freeifaddrs(addrs); in TEST()
80 ifaddrs* addrs; in TEST() local
81 ASSERT_EQ(0, getifaddrs(&addrs)); in TEST()
83 for (ifaddrs* addr = addrs; addr != nullptr; addr = addr->ifa_next) { in TEST()
93 freeifaddrs(addrs); in TEST()
113 const std::set<in_addr_t>& addrs) { in CheckAddressIsInSet() argument
135 EXPECT_TRUE(addrs.find(addr) != addrs.end()) << if_name << ' ' << std::hex << ntohl(addr); in CheckAddressIsInSet()
143 ifaddrs* addrs; in TEST() local
144 ASSERT_EQ(0, getifaddrs(&addrs)); in TEST()
145 for (ifaddrs* addr = addrs; addr != nullptr; addr = addr->ifa_next) { in TEST()
155 freeifaddrs(addrs); in TEST()
226 ifaddrs* addrs; in TEST() local
227 ASSERT_EQ(0, getifaddrs(&addrs)); in TEST()
229 for (ifaddrs* ifa = addrs; ifa != nullptr; ifa = ifa->ifa_next) { in TEST()
252 freeifaddrs(addrs); in TEST()
256 ifaddrs* addrs; in TEST() local
257 ASSERT_EQ(0, getifaddrs(&addrs)); in TEST()
259 for (ifaddrs* ifa = addrs; ifa != nullptr; ifa = ifa->ifa_next) { in TEST()
270 freeifaddrs(addrs); in TEST()
281 ifaddrs* addrs = nullptr; in TEST() local
282 ASSERT_EQ(0, getifaddrs(&addrs)) << strerror(errno); in TEST()
283 freeifaddrs(addrs); in TEST()
303 ifaddrs* addrs; in TEST() local
304 EXPECT_EQ(-1, getifaddrs(&addrs)); in TEST()