Searched refs:ifa_it (Results 1 – 2 of 2) sorted by relevance
97 struct ifaddrs* ifa_it; in grpc_tcp_server_add_all_local_addrs() local116 for (ifa_it = ifa; ifa_it != nullptr; ifa_it = ifa_it->ifa_next) { in grpc_tcp_server_add_all_local_addrs()120 const char* ifa_name = (ifa_it->ifa_name ? ifa_it->ifa_name : "<unknown>"); in grpc_tcp_server_add_all_local_addrs()121 if (ifa_it->ifa_addr == nullptr) { in grpc_tcp_server_add_all_local_addrs()123 } else if (ifa_it->ifa_addr->sa_family == AF_INET) { in grpc_tcp_server_add_all_local_addrs()125 } else if (ifa_it->ifa_addr->sa_family == AF_INET6) { in grpc_tcp_server_add_all_local_addrs()130 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.c_str()); in grpc_tcp_server_add_all_local_addrs()
438 struct ifaddrs* ifa_it; in main() local464 for (ifa_it = ifa; ifa_it != nullptr && dst_addrs->naddrs < MAX_ADDRS; in main()465 ifa_it = ifa_it->ifa_next) { in main()466 if (ifa_it->ifa_addr == nullptr) { in main()468 } else if (ifa_it->ifa_addr->sa_family == AF_INET) { in main()471 } else if (ifa_it->ifa_addr->sa_family == AF_INET6) { in main()477 memcpy(dst_addrs->addrs[dst_addrs->naddrs].addr.addr, ifa_it->ifa_addr, in main()