Do export the advertised receive window via the tcpi_rcv_space field of

struct tcp_info.
This commit is contained in:
Robert Watson 2004-11-27 20:20:11 +00:00
parent 16ba4bcbf3
commit c8443a1dc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138136
2 changed files with 2 additions and 1 deletions

View File

@ -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. */

View File

@ -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;
}