diff options
author | brooks <brooks@FreeBSD.org> | 2005-06-06 19:08:11 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2005-06-06 19:08:11 +0000 |
commit | 3252beb54b2189a2bc39b6ad1b1cb2da0425933e (patch) | |
tree | 03c6300200989b9284807a1d6c61075b16cb4d62 /sys/net/if.c | |
parent | 741e51c695c4edd5569d60968c3a337fce5802ae (diff) | |
download | FreeBSD-src-3252beb54b2189a2bc39b6ad1b1cb2da0425933e.zip FreeBSD-src-3252beb54b2189a2bc39b6ad1b1cb2da0425933e.tar.gz |
Send link state change notifications to /dev/devctl. This is needed to
start the OpenBSD dhclient when links come up.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index d244f4e..d2d179f 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -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) |