diff options
author | hiren <hiren@FreeBSD.org> | 2015-10-14 05:29:33 +0000 |
---|---|---|
committer | hiren <hiren@FreeBSD.org> | 2015-10-14 05:29:33 +0000 |
commit | cb1e85a62a66e6164b8ed8a3846075f3694a00eb (patch) | |
tree | 130208dd5a9c0ee43a12ff1d2cbb65e5baead091 /sys/netinet | |
parent | f8a9ff862ce919132a8d66e293a0e1d17460274a (diff) | |
download | FreeBSD-src-cb1e85a62a66e6164b8ed8a3846075f3694a00eb.zip FreeBSD-src-cb1e85a62a66e6164b8ed8a3846075f3694a00eb.tar.gz |
MFC r288914
Add a comment specifying how we implement rfc3042.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_input.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 6af5c9c..0500f25 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -2523,6 +2523,16 @@ tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so, tp->snd_nxt = onxt; goto drop; } else if (V_tcp_do_rfc3042) { + /* + * Process first and second duplicate + * ACKs. Each indicates a segment + * leaving the network, creating room + * for more. Make sure we can send a + * packet on reception of each duplicate + * ACK by increasing snd_cwnd by one + * segment. Restore the original + * snd_cwnd after packet transmission. + */ cc_ack_received(tp, th, CC_DUPACK); u_long oldcwnd = tp->snd_cwnd; tcp_seq oldsndmax = tp->snd_max; |