diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2007-06-05 03:16:12 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-06-07 16:40:08 -0400 |
commit | 274707cff9810b784c548ed169298617a1bc3528 (patch) | |
tree | c6c7c4a9dbbc07616eda1c1a711499b7da3df743 /net/ipv4/tcp_timer.c | |
parent | c4b1010f406d7c3f819c22a6323c46776d5b148c (diff) |
[TCP]: Use LIMIT_NETDEBUG in tcp_retransmit_timer().
LIMIT_NETDEBUG allows the admin to disable some warning messages (echo 0
>/proc/sys/net/core/warnings).
The "TCP: Treason uncloaked!" message can use this facility.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index e61340150ba6..e9b151b3a598 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -292,9 +292,9 @@ static void tcp_retransmit_timer(struct sock *sk) | |||
292 | * we cannot allow such beasts to hang infinitely. | 292 | * we cannot allow such beasts to hang infinitely. |
293 | */ | 293 | */ |
294 | #ifdef TCP_DEBUG | 294 | #ifdef TCP_DEBUG |
295 | if (net_ratelimit()) { | 295 | if (1) { |
296 | struct inet_sock *inet = inet_sk(sk); | 296 | struct inet_sock *inet = inet_sk(sk); |
297 | printk(KERN_DEBUG "TCP: Treason uncloaked! Peer %u.%u.%u.%u:%u/%u shrinks window %u:%u. Repaired.\n", | 297 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: Treason uncloaked! Peer %u.%u.%u.%u:%u/%u shrinks window %u:%u. Repaired.\n", |
298 | NIPQUAD(inet->daddr), ntohs(inet->dport), | 298 | NIPQUAD(inet->daddr), ntohs(inet->dport), |
299 | inet->num, tp->snd_una, tp->snd_nxt); | 299 | inet->num, tp->snd_una, tp->snd_nxt); |
300 | } | 300 | } |