Re: [PATCH net] net/ipv6: fix incorrect fib6 gateway info after do redirect

2018-09-06 Thread David Ahern
On 9/6/18 6:57 AM, Hangbin Liu wrote: > When receive a redirect message and call rt6_do_redirect(), we allocate > a new rt6_info and set new flags and gateway info, but not update these > info to fib6_info. > > Then if a user try to get the route info via `ip route get`, he will still > get the ol

[PATCH net] net/ipv6: fix incorrect fib6 gateway info after do redirect

2018-09-06 Thread Hangbin Liu
When receive a redirect message and call rt6_do_redirect(), we allocate a new rt6_info and set new flags and gateway info, but not update these info to fib6_info. Then if a user try to get the route info via `ip route get`, he will still get the old default gateway, because inet6_rtm_getroute() ge