From: kuznet@ms2.inr.ac.ru
To: pekkas@netcore.fi (Pekka Savola)
Cc: therapy@endorphin.org, netdev@oss.sgi.com,
linux-kernel@vger.kernel.org, davem@redhat.com (Dave Miller)
Subject: Re: missing icmp errors for udp packets
Date: Sun, 29 Jul 2001 19:59:11 +0400 (MSK DST) [thread overview]
Message-ID: <200107291559.TAA15413@ms2.inr.ac.ru> (raw)
In-Reply-To: <Pine.LNX.4.33.0107290739370.2081-100000@netcore.fi> from "Pekka Savola" at Jul 29, 1 07:57:48 am
Hello!
> So in conclusion:
>
> with net.ipv4.icmp_echoreply_rate=0:
Congratulations! That's why I do not see this, forgot to ping before. :-)
The patch is enclosed.
Alexey
--- ../dust/vger3-010728/linux/net/ipv4/icmp.c Thu Jun 14 22:49:44 2001
+++ linux/net/ipv4/icmp.c Sun Jul 29 19:52:55 2001
@@ -240,12 +240,15 @@
int xrlim_allow(struct dst_entry *dst, int timeout)
{
unsigned long now;
+ static int burst;
now = jiffies;
dst->rate_tokens += now - dst->rate_last;
dst->rate_last = now;
- if (dst->rate_tokens > XRLIM_BURST_FACTOR*timeout)
- dst->rate_tokens = XRLIM_BURST_FACTOR*timeout;
+ if (burst < XRLIM_BURST_FACTOR*timeout)
+ burst = XRLIM_BURST_FACTOR*timeout;
+ if (dst->rate_tokens > burst)
+ dst->rate_tokens = burst;
if (dst->rate_tokens >= timeout) {
dst->rate_tokens -= timeout;
return 1;
next parent reply other threads:[~2001-07-29 16:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.33.0107290739370.2081-100000@netcore.fi>
2001-07-29 15:59 ` kuznet [this message]
2001-07-30 13:03 ` Pekka Savola
2001-07-31 18:33 ` kuznet
2001-07-31 18:47 ` Pekka Savola
2001-07-31 18:51 ` clemens
2001-07-31 19:04 ` kuznet
2001-07-31 19:23 ` Chris Wedgwood
2001-07-31 19:25 ` kuznet
2001-07-31 19:34 ` Chris Wedgwood
2001-07-31 19:37 ` kuznet
2001-07-31 19:41 ` Chris Wedgwood
2001-07-31 19:59 ` Pekka Savola
2001-07-31 20:53 ` Chris Wedgwood
2001-07-31 20:57 ` Pekka Savola
2001-08-02 19:31 ` Pekka Savola
2001-08-03 8:58 ` David S. Miller
[not found] <200107311857.WAA10162@ms2.inr.ac.ru>
2001-07-31 20:16 ` clemens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200107291559.TAA15413@ms2.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=pekkas@netcore.fi \
--cc=therapy@endorphin.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®