Do export the advertised receive window via the tcpi_rcv_space field of
struct tcp_info.
This commit is contained in:
parent
16ba4bcbf3
commit
c8443a1dc0
@ -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. */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user