summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-11-27 20:20:11 +0000
committerrwatson <rwatson@FreeBSD.org>2004-11-27 20:20:11 +0000
commit5b8c82febad03ae2d4576de3c213c7c037e9e677 (patch)
tree37eb78c9a67d3c93f5c67c6bae5652a7e467f5d6 /sys
parent56a6f0139c2e8941160222c2e78e418594322f7e (diff)
downloadFreeBSD-src-5b8c82febad03ae2d4576de3c213c7c037e9e677.zip
FreeBSD-src-5b8c82febad03ae2d4576de3c213c7c037e9e677.tar.gz
Do export the advertised receive window via the tcpi_rcv_space field of
struct tcp_info.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp.h2
-rw-r--r--sys/netinet/tcp_usrreq.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index a312078..64aa6e8 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 b07458b..66bd795 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;
}
OpenPOWER on IntegriCloud