Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_server_utils_posix_ifaddrs.cc94 struct ifaddrs* ifa_it; in grpc_tcp_server_add_all_local_addrs() local
113 for (ifa_it = ifa; ifa_it != nullptr; ifa_it = ifa_it->ifa_next) { in grpc_tcp_server_add_all_local_addrs()
118 const char* ifa_name = (ifa_it->ifa_name ? ifa_it->ifa_name : "<unknown>"); in grpc_tcp_server_add_all_local_addrs()
119 if (ifa_it->ifa_addr == nullptr) { in grpc_tcp_server_add_all_local_addrs()
121 } else if (ifa_it->ifa_addr->sa_family == AF_INET) { in grpc_tcp_server_add_all_local_addrs()
123 } else if (ifa_it->ifa_addr->sa_family == AF_INET6) { in grpc_tcp_server_add_all_local_addrs()
128 memcpy(addr.addr, ifa_it->ifa_addr, addr.len); in grpc_tcp_server_add_all_local_addrs()
139 ifa_name, ifa_it->ifa_flags, addr_str); in grpc_tcp_server_add_all_local_addrs()
/external/grpc-grpc/test/core/iomgr/
Dtcp_server_posix_test.cc436 struct ifaddrs* ifa_it; in main() local
457 for (ifa_it = ifa; ifa_it != nullptr && dst_addrs->naddrs < MAX_ADDRS; in main()
458 ifa_it = ifa_it->ifa_next) { in main()
459 if (ifa_it->ifa_addr == nullptr) { in main()
461 } else if (ifa_it->ifa_addr->sa_family == AF_INET) { in main()
464 } else if (ifa_it->ifa_addr->sa_family == AF_INET6) { in main()
470 memcpy(dst_addrs->addrs[dst_addrs->naddrs].addr.addr, ifa_it->ifa_addr, in main()