[TCP]: cubic - eliminate use of receive time stamp
authorStephen Hemminger <shemminger@linux-foundation.org>
Thu, 26 Jul 2007 06:50:06 +0000 (23:50 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 31 Jul 2007 09:27:58 +0000 (02:27 -0700)
commite7d0c88586a66cf03e70750a8119d984fdedf2aa
tree87d9da3efbd1dd5ba67ce60cd7c342f23eccdcab
parent30cfd0baf0a0c4329fff1ef4b622919297969ec8
[TCP]: cubic - eliminate use of receive time stamp

Remove use of received timestamp option value from RTT calculation in Cubic.
A hostile receiver may be returning a larger timestamp option than the original
value. This would cause the sender to believe the malevolent receiver had
a larger RTT and because Cubic tries to provide some RTT friendliness, the
sender would then favor the liar.

Instead, use the jiffie resolutionRTT value already computed and
passed back after ack.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cubic.c