From: Li Yewang <lyw@nanjing-fnst.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org
Subject: Re:[PATCH]Fix BUG of ip_rt_send_redirect()
Date: Tue, 19 Dec 2006 09:45:25 +0800 [thread overview]
Message-ID: <1166492725.3180.18.camel@localhost.localdomain> (raw)
David Miller <davem@davemloft.net> wrote:
> Applied, but I had to fix many errors in your patch by hand.
> Please take care of these details next time.
>
> Here, your email client wrapped the lines in the patch, corrupting it.
>
> Please use real tab characters, when necessary, in the indentation of
> new code lines that you add, not just spaces.
>
> Thank you.
Mr David Miller
I have made another patch file about the ip_rt_send_redirect().
This patch has not wrapped lines, and can be patched into the kernel.
Following is my patch:
signed-off-by: Li Yewang <lyw@nanjing-fnst.com>
--- a/net/ipv4/route.org.c 2006-12-19 09:22:16.260271000 +0800
+++ a/net/ipv4/route.c 2006-12-19 09:22:16.241273888 +0800
@@ -1327,7 +1327,8 @@ void ip_rt_send_redirect(struct sk_buff
/* Check for load limit; set rate_last to the latest sent
* redirect.
*/
- if (time_after(jiffies,
+ if (rt->u.dst.rate_tokens == 0 ||
+ time_after(jiffies,
(rt->u.dst.rate_last +
(ip_rt_redirect_load << rt->u.dst.rate_tokens)))) {
icmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, rt->rt_gateway);
next reply other threads:[~2006-12-19 1:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-19 1:45 Li Yewang [this message]
2006-12-19 2:13 ` [PATCH]Fix BUG of ip_rt_send_redirect() David Miller
-- strict thread matches above, loose matches on Subject: below --
2006-11-29 8:51 Li Yewang
2006-11-29 8:08 Li Yewang
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=1166492725.3180.18.camel@localhost.localdomain \
--to=lyw@nanjing-fnst.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.