From: Gerrit Renker Date: Tue, 20 Mar 2007 18:23:18 +0000 (-0300) Subject: [DCCP]: Provide function for RTT sampling X-Git-Tag: v2.6.22-rc1~1128^2~227 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4712a792ee661921374c163eb6a4d06e33fd305f;p=pandora-kernel.git [DCCP]: Provide function for RTT sampling A recurring problem, in particular in the CCID code, is that RTT samples from packets with timestamp echo and elapsed time options need to be taken. This service is provided via a new function dccp_sample_rtt in this patch. Furthermore, to protect against `insane' RTT samples, the sampled value is bounded between 100 microseconds and 4 seconds - for which u32 is sufficient. Signed-off-by: Gerrit Renker Signed-off-by: Ian McDonald Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- Reading git-diff-tree failed