Netdev List
 help / color / mirror / Atom feed
From: "Li Yewang" <lyw@nanjing-fnst.com>
To: "Herbert Xu" <herbert@gondor.apana.org.au>
Cc: <netdev@vger.kernel.org>
Subject: Re: [PATCH]Fix BUG of ip_rt_send_redirect()
Date: Tue, 21 Nov 2006 11:07:25 +0800	[thread overview]
Message-ID: <00e801c70d1a$2d14d800$7a04a8c0@liyewang> (raw)
In-Reply-To: E1GkxXa-00055c-00@gondolin.me.apana.org.au

Yes, the first time when router want to send redirect packet,
We should send the redirect packet simply and do not regard the jiffies.
But the kernel has bugs as follow:
1.The kernel can not send the redirect packet at the begin 5 minutes 
  when the system boot(32bit machine).

2.In a circle of jiffies, router has 24.9 days can not send redirect packet.

I think my patch can solve the bugs.



Herbert Xu <herbert@gondor.apana.org.au> wrote:
> I think there are two problems here:
> 
> 1) The first time we hit the check rate_last is zero.  We should simply
> proceed with the redirect rather than treating this as a jiffies value.
> 
> 2) When a dst is so old that the jiffies have wrapped around.  I'm
> not sure whether this is worth solving as it should be extremely rare
> unless your HZ is sufficiently large and you're on a 32-bit platform.
> 
> One solution would be to periodically reset the rate_last fields to
> their original states.  Perhaps we can combine that with the GC.
> 
> Cheers,
> -- 
> Visit Openswan at http://www.openswan.org/
> Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


  reply	other threads:[~2006-11-21  3:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17  4:57 [PATCH]Fix BUG of ip_rt_send_redirect() Li Yewang
2006-11-17  3:51 ` Stephen Hemminger
2006-11-17  5:45   ` Wei Yongjun
2006-11-17  6:49     ` Herbert Xu
2006-11-21  3:07       ` Li Yewang [this message]
2006-11-29  2:55       ` Li Yewang
  -- strict thread matches above, loose matches on Subject: below --
2006-11-29  8:08 Li Yewang
2006-12-18  3:02 ` [PATCH]Fix " Herbert Xu
2006-11-29  8:51 Li Yewang
2006-12-18  5:56 ` [PATCH]Fix " Herbert Xu
2006-12-19  1:45 Li Yewang
2006-12-19  2:13 ` [PATCH]Fix " David Miller

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='00e801c70d1a$2d14d800$7a04a8c0@liyewang' \
    --to=lyw@nanjing-fnst.com \
    --cc=herbert@gondor.apana.org.au \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox