Le samedi 09 juin 2018 à 19:23 +0200, Denis Fondras a écrit : > On Thu, Jun 07, 2018 at 04:02:34PM +0200, Bastien Durel wrote: > > shouldn't it check the rtm_priority to be RTP_LOCAL or > > RTP_CONNECTED ?? > > it make no sense to start advertising prefix on an interface if the > > prefix is over a gateway. > > > > Why RTP_LOCAL ? > Because it's lower than RTP_CONNECTED and I don't know what it is. The /* local address routes (must be the highest) */ comment makes me think it MAY be 127.0.0.0/8 or ::1/128 (useless for rtadvd then), but it may be related to interface addresses; I did not check in the kernel code how this flag is set. (hence the question marks)
-- Bastien Durel