Make sure RTF_LOCAL route entries are UP when added to the tree.
authormpi <mpi@openbsd.org>
Tue, 13 Oct 2015 09:59:37 +0000 (09:59 +0000)
committermpi <mpi@openbsd.org>
Tue, 13 Oct 2015 09:59:37 +0000 (09:59 +0000)
commit1a08736a8d922a124ad45d1e9f928525907acc8b
treecd2454575a44812cc11d026bcfd5f6819b9529e4
parent9d4de16fe023193a84c3ca763e61653a383fd0cc
Make sure RTF_LOCAL route entries are UP when added to the tree.

This is required to maintain the original BSD behavior of locally
configured addresses being always reacheable.

Some interfaces are^w^W^Wem(4) is special and generally has a DOWN
link state when configured by netstart(8).  As a result all the
route entries cloned/added before its link state goes to UP are also
marked as DOWN.

Note that this problem was not present when local addresses were
attached to lo0.

ok mikeb@
sys/net/route.c