Searched refs:ifa_it (Results 1 – 2 of 2) sorted by relevance
94 struct ifaddrs* ifa_it; in grpc_tcp_server_add_all_local_addrs() local113 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()
436 struct ifaddrs* ifa_it; in main() local457 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()