On 12/23/14 11:59, Martin Pieuchot wrote:
>> Would it make sense to remove the loop in rt_newaddrmsg which generates the 
>> two
>> > route messages? Instead of this rt_newaddrmsg sends only the RTM_NEWADDR /
>> > RTM_DELADDR message and the other message gets send after 
>> > creating/deleting the
>> > cloning route.
> I think it does make sense.  It would restore the RTM_ADD for
> RTF_CLONING routes and keep one RTM_NEWADDR for RTF_LOCAL routes.
> Apart from your scenario with ospfd/ospf6d, dhclient should be happy
> with this change and I can think of a third case.  If  you configure
> two addresses of the same subnet you should see 2 RTM_NEWADDR but only
> one RTM_ADD since only the first address will get a cloning route.
> 
>> > By the way if rt_newaddrmsg() sends RTM_NEWADDR and RTM_DELADDR we should
>> > rename it to rt_addrmsg().
> If you remove the loop and generate only one message, I think that you can
> simply use rt_sendmsg() and kill rt_newaddrmsg().


ok, thanks for your advice. I will try it and let you know if it works.

Reply via email to