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:
parent
741e51c695
commit
3252beb54b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user