Searched refs:ifa_it (Results 1 – 3 of 3) sorted by relevance
/external/grpc-grpc/src/core/lib/iomgr/ |
D | tcp_server_utils_posix_ifaddrs.cc | 94 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/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | tcp_server_utils_posix_ifaddrs.cc | 97 struct ifaddrs* ifa_it; in grpc_tcp_server_add_all_local_addrs() local 116 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()
|
/external/grpc-grpc/test/core/iomgr/ |
D | tcp_server_posix_test.cc | 436 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()
|