diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h index a312078683da..64aa6e8c66f4 100644 --- a/sys/netinet/tcp.h +++ b/sys/netinet/tcp.h @@ -216,7 +216,7 @@ struct tcp_info { u_int32_t __tcpi_reordering; u_int32_t __tcpi_rcv_rtt; - u_int32_t __tcpi_rcv_space; + u_int32_t tcpi_rcv_space; /* Advertised recv window. */ /* FreeBSD extensions to tcp_info. */ u_int32_t tcpi_snd_wnd; /* Advertised send window. */ diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index b07458b5e580..66bd7955fda0 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -974,6 +974,7 @@ tcp_fill_info(tp, ti) /* * FreeBSD-specific extension fields for tcp_info. */ + ti->tcpi_rcv_space = tp->rcv_wnd; ti->tcpi_snd_wnd = tp->snd_wnd; ti->tcpi_snd_bwnd = tp->snd_bwnd; }