If intra area prefixes move from one router to another router, cloning routes
authorfriehm <friehm@openbsd.org>
Tue, 10 Jul 2018 12:17:38 +0000 (12:17 +0000)
committerfriehm <friehm@openbsd.org>
Tue, 10 Jul 2018 12:17:38 +0000 (12:17 +0000)
commit00c1ad6a1d60e011efe9eb8971e5193f4c4ba393
tree2877a9b9292dc089340d76e1d0b11358427d91fa
parentc90ecb6b0f14080b887d870f189d921dacca11f8
If intra area prefixes move from one router to another router, cloning routes
may become gateway routes and contrary. The kernel does not allow to change the
flags RTF_GATEWAY / RTF_CLONING in RTM_CHANGE messages, but ospf6d tried this
anyway. The result is a broken route.
Instead of modifying such routes remove the old route and insert a new one.

Thanks to Raimund Specht for reporting the problem and testing the fix.

OK claudio@
usr.sbin/ospf6d/kroute.c