|
|
@ -188,8 +188,8 @@ void extract_opt_stats_from_cmsg(ConnectionMetrics* metrics, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int get_socket_tcp_info(grpc_core::tcp_info* info, int fd) { |
|
|
|
static int get_socket_tcp_info(grpc_core::tcp_info* info, int fd) { |
|
|
|
info->length = sizeof(*info) - sizeof(socklen_t); |
|
|
|
|
|
|
|
memset(info, 0, sizeof(*info)); |
|
|
|
memset(info, 0, sizeof(*info)); |
|
|
|
|
|
|
|
info->length = sizeof(*info) - sizeof(socklen_t); |
|
|
|
return getsockopt(fd, IPPROTO_TCP, TCP_INFO, info, &(info->length)); |
|
|
|
return getsockopt(fd, IPPROTO_TCP, TCP_INFO, info, &(info->length)); |
|
|
|
} |
|
|
|
} |
|
|
|
} /* namespace */ |
|
|
|
} /* namespace */ |
|
|
|