Hi Roopa, On Sat, Jul 22, 2017 at 09:55:51PM -0700, Roopa Prabhu wrote: > On Thu, Jul 20, 2017 at 7:51 AM, Hangbin Liu <liuhang...@gmail.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
Sorry, I have a copy/paste error here, the return error should be + ip netns exec server ip -6 route get 2002::1 RTNETLINK answers: Permission denied I fixed it in v2 patch, but forgot to add #ifdef CONFIG_IPV6_MULTIPLE_TABLES before net->ipv6.ip6_prohibit_entry. Since you acked this patch. I will post a v3 patch with fixed comment. > > > > 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 <liuhang...@gmail.com> > > --- > > Acked-by: Roopa Prabhu <ro...@cumulusnetworks.com> Thanks Hangbin