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: Wed, 29 Nov 2006 10:55:07 +0800	[thread overview]
Message-ID: <00df01c71361$c81f04e0$2a01a8c0@liyewang> (raw)
In-Reply-To: E1GkxXa-00055c-00@gondolin.me.apana.org.au

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,

Mr Herbert Xu

Sorry for later reply

 I have some questions about your advice:
1) If the first time when we send the redirect packets, but the time_after(jiffies, b)==false.
     So the redirect packets can not be sended.
     This situation happens when the system of 32-bit boot on less than 5 minutes.
     This must be the kernel bug.

2) If the router used frequently, the garbage collect function can not free this dst. 
    Next time when we want this router to send redirect packets, and if the jiffies wraparound 
    and time_after(jiffies,b)==false, the redirect packets can not be sended. 
    So we must consider this situation and solve this problem.
        

> 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
>

  parent reply	other threads:[~2006-11-29  2:57 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
2006-11-29  2:55       ` Li Yewang [this message]
  -- 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='00df01c71361$c81f04e0$2a01a8c0@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