Report link states changes (link up/down and braudrate changes) through
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Mar 2007 05:57:49 +0000 (05:57 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Mar 2007 05:57:49 +0000 (05:57 +0000)
commit6de83abe01db7cd3adbc905f5ff72cc822c09c1a
treea8255f354fe4e1cd07f2a18f5a7edc38283687a4
parentbd496fc1c3d3320b54928b2b7113c6f048cd4630
Report link states changes (link up/down and braudrate changes) through
routing socket.

Miibus(4) aware network drivers can benifit from this change without
adapatation.  Em(4), which is not miibus(4) aware, is adapted to support
this change.

Submitted-by: Hasso Tepper <hasso@estpak.ee>
Obtained-from: OpenBSD w/ modification
Reviewed-by: dillon@
sys/dev/netif/em/if_em.c
sys/dev/netif/mii_layer/mii_physubr.c
sys/net/if.c
sys/net/if.h
sys/net/if_media.c
sys/net/if_media.h
sys/net/if_var.h