Call if_up(), if in_ifinit() brings interface up (via ifp->if_ioctl).
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 28 Dec 2008 05:31:41 +0000 (13:31 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 31 Dec 2008 10:14:41 +0000 (18:14 +0800)
commit2e02352cd0df4ba39371e654e6178b72c9474e8e
treed7f243414d835c51355b658047ec4ac7fd895cdf
parent102e97f31733741a73135d716be6fb305e8842fd
Call if_up(), if in_ifinit() brings interface up (via ifp->if_ioctl).
This is done no matter whether the address assignment fails or not.

This commit is intend to fix following case:

ifconfig iface0 192.168.5.1
ifconfig iface0 down
ifconfig iface0 alias 192.168.6.1

Before this commit, 192.168.5.0/24 prefix route will not be installed.
sys/netinet/in.c