diff options
author | dillon <dillon@FreeBSD.org> | 2002-08-17 18:26:02 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-08-17 18:26:02 +0000 |
commit | bb806c49bfead601a2b3c7298f33acef7d26a4ef (patch) | |
tree | 81ede6b84903af3b1f395ea052e7ad5eeb1fce0c /sys/netinet/tcp_usrreq.c | |
parent | f31168aa75e2bc569ba987f85d994af3c2662ccb (diff) | |
download | FreeBSD-src-bb806c49bfead601a2b3c7298f33acef7d26a4ef.zip FreeBSD-src-bb806c49bfead601a2b3c7298f33acef7d26a4ef.tar.gz |
Implement TCP bandwidth delay product window limiting, similar to (but
not meant to duplicate) TCP/Vegas. Add four sysctls and default the
implementation to 'off'.
net.inet.tcp.inflight_enable enable algorithm (defaults to 0=off)
net.inet.tcp.inflight_debug debugging (defaults to 1=on)
net.inet.tcp.inflight_min minimum window limit
net.inet.tcp.inflight_max maximum window limit
MFC after: 1 week
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 86720d0..767fb7d 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -875,6 +875,7 @@ tcp_connect(tp, nam, td) tp->t_state = TCPS_SYN_SENT; callout_reset(tp->tt_keep, tcp_keepinit, tcp_timer_keep, tp); tp->iss = tcp_new_isn(tp); + tp->t_bw_rtseq = tp->iss; tcp_sendseqinit(tp); /* @@ -961,6 +962,7 @@ tcp6_connect(tp, nam, td) tp->t_state = TCPS_SYN_SENT; callout_reset(tp->tt_keep, tcp_keepinit, tcp_timer_keep, tp); tp->iss = tcp_new_isn(tp); + tp->t_bw_rtseq = tp->iss; tcp_sendseqinit(tp); /* |