On Tue, Aug 1, 2017 at 2:01 PM, David Ahern <dsah...@gmail.com> wrote: > On 7/31/17 7:40 PM, Xin Long wrote: >> To respect the old code more, setting RTPROT_RA only when >> it's with the flag (ADDRCONF | DEFAULT | ROUTEINFO), >> shouldn't it be: > > Look at rtm_fill_info: > > if (rt->rt6i_flags & (RTF_DEFAULT | RTF_ROUTEINFO)) > rtm->rtm_protocol = RTPROT_RA; > > > If either flag is set the protocol should be RTPROT_RA and looking at > both places that seems correct to me. > ok, right
- [PATCH net] ipv6: set fc_protocol with 0 when rtm_protocol is ... Xin Long
- Re: [PATCH net] ipv6: set fc_protocol with 0 when rtm_pro... David Ahern
- Re: [PATCH net] ipv6: set fc_protocol with 0 when rtm... Xin Long
- Re: [PATCH net] ipv6: set fc_protocol with 0 when... David Ahern
- Re: [PATCH net] ipv6: set fc_protocol with 0 ... Xin Long
- Re: [PATCH net] ipv6: set fc_protocol wi... David Ahern
- Re: [PATCH net] ipv6: set fc_protoco... Xin Long