Currently, attempting to move an immovable lo(4) to a new rdomain will fail
authorakoshibe <akoshibe@openbsd.org>
Thu, 9 Aug 2018 03:35:19 +0000 (03:35 +0000)
committerakoshibe <akoshibe@openbsd.org>
Thu, 9 Aug 2018 03:35:19 +0000 (03:35 +0000)
commit060157415d5f0558d2a599bcd4ad9c3bcfe5d570
treee46eaab7136447c0baffeb3cb6c1346648293775
parenta903225f73344bad990bbcd17bc14d192617c136
Currently, attempting to move an immovable lo(4) to a new rdomain will fail
with an EPERM, but the target rdomain will still be created.

Move the check for an lo(4)'s if_index/if_rdomain to before the creation of a
nonexisting target routing table.

ok benno@ claudio@ mpi@
sys/net/if.c