[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20131108.151838.396871634708278992.davem@davemloft.net>
Date: Fri, 08 Nov 2013 15:18:38 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: duanj.fnst@...fujitsu.com
Cc: hannes@...essinduktion.org, netdev@...r.kernel.org
Subject: Re: [PATCH] ipv6: use rt6_get_dflt_router to get default router in
rt6_route_rcv
From: Duan Jiong <duanj.fnst@...fujitsu.com>
Date: Fri, 08 Nov 2013 09:56:53 +0800
>
> As the rfc 4191 said, the Router Preference and Lifetime values in a
> ::/0 Route Information Option should override the preference and lifetime
> values in the Router Advertisement header. But when the kernel deals with
> a ::/0 Route Information Option, the rt6_get_route_info() always return
> NULL, that means that overriding will not happen, because those default
> routers were added without flag RTF_ROUTEINFO in rt6_add_dflt_router().
>
> In order to deal with that condition, we should call rt6_get_dflt_router
> when the prefix length is 0.
>
> Signed-off-by: Duan Jiong <duanj.fnst@...fujitsu.com>
Applied and queued up for -stable, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists