public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: BALAKUMARAN KANNAN <balakumarank@tataelxsi.co.in>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: timer expiry check at icmp.c in ipv6
Date: Tue, 17 Jul 2012 07:39:23 +0200	[thread overview]
Message-ID: <1342503563.2626.38.camel@edumazet-glaptop> (raw)
In-Reply-To: <4A71D24947E78D43BC584A7CD4391A41017DBDB4@SIXPRD0410MB359.apcprd04.prod.outlook.com>

On Tue, 2012-07-17 at 05:11 +0000, BALAKUMARAN KANNAN wrote:
> Dear Eric,
>     Can you please explain it into bit further. Actually what I want
> to know is how the preferred lifetime value of a router advertisement
> is processed?, Where it is stored? and while sending the ICMP_REPLY
> how that preferred lifetime value considered before actually sending
> the packet? I cannot able to find the relation between
> icmpv6_echo_reply and fib6_run_gc(). I am very new to kernel source.
> Kindly help me.

# find net/ipv6|xargs grep -n RTF_EXPIRES
net/ipv6/ip6_fib.c:675:				if (!(iter->rt6i_flags & RTF_EXPIRES))
net/ipv6/ip6_fib.c:677:				if (!(rt->rt6i_flags & RTF_EXPIRES))
net/ipv6/ip6_fib.c:740:	    (rt->rt6i_flags & (RTF_EXPIRES | RTF_CACHE)))
net/ipv6/ip6_fib.c:1545:	if (rt->rt6i_flags & RTF_EXPIRES && rt->dst.expires) {
net/ipv6/route.c:307:	if (!(rt->rt6i_flags & RTF_EXPIRES) && dst->from)
net/ipv6/route.c:370:	if (rt->rt6i_flags & RTF_EXPIRES) {
net/ipv6/route.c:375:		return (ort->rt6i_flags & RTF_EXPIRES) &&
net/ipv6/route.c:1397:	if (cfg->fc_flags & RTF_EXPIRES)
net/ipv6/route.c:1908:				  RTF_UP | RTF_EXPIRES | RTF_PREF(pref),
net/ipv6/route.c:2476:	if (!(rt->rt6i_flags & RTF_EXPIRES))
net/ipv6/addrconf.c:805:			} else if (!(rt->rt6i_flags & RTF_EXPIRES)) {
net/ipv6/addrconf.c:1902:				flags |= RTF_EXPIRES;
net/ipv6/addrconf.c:2212:		flags = RTF_EXPIRES;
net/ipv6/addrconf.c:3420:		flags = RTF_EXPIRES;
net/ipv6/ip6_fib.c.orig:675:				if (!(iter->rt6i_flags & RTF_EXPIRES))
net/ipv6/ip6_fib.c.orig:677:				if (!(rt->rt6i_flags & RTF_EXPIRES))
net/ipv6/ip6_fib.c.orig:740:	    (rt->rt6i_flags & (RTF_EXPIRES | RTF_CACHE)))
net/ipv6/ip6_fib.c.orig:1545:	if (rt->rt6i_flags & RTF_EXPIRES && rt->dst.expires) {



What are the expected preferred lifetimes of a router ?

If granularity is one second, the garbage collection done every 30
seconds is not good.

But if its one hour, or one day, having a 30 seconds delay at the end of
the period isnt critical.

      reply	other threads:[~2012-07-17  5:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 13:44 timer expiry check at icmp.c in ipv6 BALAKUMARAN KANNAN
2012-07-16 14:33 ` Eric Dumazet
2012-07-17  5:11   ` BALAKUMARAN KANNAN
2012-07-17  5:39     ` Eric Dumazet [this message]

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=1342503563.2626.38.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=balakumarank@tataelxsi.co.in \
    --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