Skip to contentSkip to conversation

Fix BUG of ip_rt_send_redirect()

PATCH Li Yewang 2 participants 2 messages Dec 19, 2006

Subsystems (3)
lore
Share & tools
lore

Li Yewang

author
#0 lore raw
Quoted 9 lines · David Miller

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:

net/ipv4/route.c renamed from net/ipv4/route.org.c +2 -1
@@ -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);
maintainer
#1 lore raw

From: Li Yewang <[email protected]>
Date: Tue, 19 Dec 2006 09:45:25 +0800

Quoted 12 lines
Quoted 9 lines · David Miller

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.

Quoted 8 lines

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:

I said I already fixed the patch up for you when I applied it, you didn't need to redo it.