aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/dccp.h
diff options
context:
space:
mode:
authorIan McDonald <ian.mcdonald@jandi.co.nz>2006-11-10 10:09:10 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:22:02 -0500
commitf45b3ec481581f24719d8ab0bc812c02fcedc2bc (patch)
treefd3907c220fe75055494466f1f3664a13ac095d4 /net/dccp/dccp.h
parentfec5b80e4924f638418c21b09165dce8b79fee86 (diff)
[DCCP]: Fix logfile overflow
This patch fixes data being spewed into the logs continually. As the code stood if there was a large queue and long delays timeo would go down to zero and never get reset. This fixes it by resetting timeo. Put constant into header as well. Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r--net/dccp/dccp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h
index 3d4b4a908d11..7b859a723826 100644
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -62,6 +62,8 @@ extern void dccp_time_wait(struct sock *sk, int state, int timeo);
62 62
63#define DCCP_RTO_MAX ((unsigned)(120 * HZ)) /* FIXME: using TCP value */ 63#define DCCP_RTO_MAX ((unsigned)(120 * HZ)) /* FIXME: using TCP value */
64 64
65#define DCCP_XMIT_TIMEO 30000 /* Time/msecs for blocking transmit per packet */
66
65/* is seq1 < seq2 ? */ 67/* is seq1 < seq2 ? */
66static inline int before48(const u64 seq1, const u64 seq2) 68static inline int before48(const u64 seq1, const u64 seq2)
67{ 69{