[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJieiUiZRkd81BVAkDdENu9T0uBZ31OQDUAFZ+jzNnBJaHx-+g@mail.gmail.com>
Date: Sat, 22 Jul 2017 21:55:51 -0700
From: Roopa Prabhu <roopa@...ulusnetworks.com>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
WANG Cong <xiyou.wangcong@...il.com>
Subject: Re: [PATCH net] ipv6: no need to return rt->dst.error if it is not
null entry.
On Thu, Jul 20, 2017 at 7:51 AM, Hangbin Liu <liuhangbin@...il.com> wrote:
> After commit 18c3a61c4264 ("net: ipv6: RTM_GETROUTE: return matched fib
> result when requested"). When we get a prohibit ertry, we will return
> -EACCES directly.
>
> Before:
> + ip netns exec client ip -6 route get 2003::1
> prohibit 2003::1 dev lo table unspec proto kernel src 2001::1 metric
> 4294967295 error -13
>
> After:
> + ip netns exec server ip -6 route get 2002::1
> RTNETLINK answers: Network is unreachable
>
> Since we will check the ip6_null_entry later. There is not sense
> to check the dst.error after get rt.
>
> Fixes: 18c3a61c4264 ("net: ipv6: RTM_GETROUTE: return matched fib...")
> Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
> ---
Acked-by: Roopa Prabhu <roopa@...ulusnetworks.com>
thanks.
Powered by blists - more mailing lists