Send link state change notifications to /dev/devctl. This is needed to

start the OpenBSD dhclient when links come up.
This commit is contained in:
brooks 2005-06-06 19:08:11 +00:00
parent 741e51c695
commit 3252beb54b

View File

@ -1056,6 +1056,8 @@ do_link_state_change(void *arg, int pending)
(*bstp_linkstate_p)(ifp, link_state);
}
devctl_notify("IFNET", ifp->if_xname,
(link_state == LINK_STATE_UP) ? "LINK_UP" : "LINK_DOWN", NULL);
if (pending > 1)
if_printf(ifp, "%d link states coalesced\n", pending);
if (log_link_state_change)