aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorIan McDonald <ian.mcdonald@jandi.co.nz>2006-12-11 21:47:59 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-13 19:48:24 -0500
commit832e3ca62d6ee1893db05f5202c24ae5331e19ba (patch)
treec6cf0507bd9a4e48363748b0a2f2c89ad40ab6ab /net
parente1b4b9f3986b80d5785d91dbd8d72cfaf9fd1117 (diff)
[DCCP] ccid3: return value in ccid3_hc_rx_calc_first_li
In a recent patch we introduced invalid return codes which will result in the opposite of what is intended (i.e. send more packets in face of peculiar network conditions). This fixes it by returning ~0 which means not calculated as per dccp_li_hist_calc_i_mean. Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net')
-rw-r--r--net/dccp/ccids/ccid3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index fa6b75372ed7..40402c59506a 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -845,8 +845,8 @@ found:
845 * Find some p such that f(p) = fval; return 1/p [RFC 3448, 6.3.1]. 845 * Find some p such that f(p) = fval; return 1/p [RFC 3448, 6.3.1].
846 */ 846 */
847 if (rtt == 0) { /* would result in divide-by-zero */ 847 if (rtt == 0) { /* would result in divide-by-zero */
848 DCCP_WARN("RTT==0, returning 1/p = 1\n"); 848 DCCP_WARN("RTT==0\n");
849 return 1000000; 849 return ~0;
850 } 850 }
851 851
852 dccp_timestamp(sk, &tstamp); 852 dccp_timestamp(sk, &tstamp);
@@ -858,7 +858,7 @@ found:
858 DCCP_WARN("X_recv==0\n"); 858 DCCP_WARN("X_recv==0\n");
859 if ((x_recv = hcrx->ccid3hcrx_x_recv) == 0) { 859 if ((x_recv = hcrx->ccid3hcrx_x_recv) == 0) {
860 DCCP_BUG("stored value of X_recv is zero"); 860 DCCP_BUG("stored value of X_recv is zero");
861 return 1000000; 861 return ~0;
862 } 862 }
863 } 863 }
864 864