]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r245783:
authorlstewart <lstewart@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 May 2013 08:57:45 +0000 (08:57 +0000)
committerlstewart <lstewart@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 May 2013 08:57:45 +0000 (08:57 +0000)
commit90013b20c2ac9fe8797f57a312201931661d5d2b
tree7a86222491cb135ed1ffe525e1d1166695133d34
parent5b5693bd4142c9c80eff49e68e0a01fe51e20d6c
MFC r245783:

Simplify and fix a bug in cc_ack_received()'s "are we congestion window limited"
logic (refer to [1] for associated discussion). snd_cwnd and snd_wnd are
unsigned long and on 64 bit hosts, min() will truncate them to 32 bits and could
therefore potentially corrupt the result (although under normal operation,
neither variable should legitmately exceed 32 bits).

[1] http://lists.freebsd.org/pipermail/freebsd-net/2013-January/034297.html

Submitted by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@250141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/tcp_input.c