]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r258458:
authordteske <dteske@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jan 2014 07:42:31 +0000 (07:42 +0000)
committerdteske <dteske@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jan 2014 07:42:31 +0000 (07:42 +0000)
commitb7c5bc7a1ad4a66accf8ba42111df2236d03846b
tree7aeb1ba6a3adf35cc19d1331c5df50b19f52e32f
parent0eb54652cd0a9fe354de50a5485acf6cfe518f91
MFC r258458:
Improve network device scanning in the netdev module. First, make it use the
`device.subr' framework (improving performane and reducing sub-shells). Next
improve the `device.subr' framework itself. Make use of the `flags' device
struct member for network interfaces to indicate if an interface is Active,
Wired Ethernet, or 802.11 Wireless. Functions have been added to make checks
against the `flags' bit-field quick and efficient. Last, add function for
rescanning the network to update the device registers. Remove an unnecessary
local (ifn) while we're here (use already provided local `if').

git-svn-id: svn://svn.freebsd.org/base/stable/10@260676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsdconfig/networking/devices
usr.sbin/bsdconfig/networking/share/device.subr
usr.sbin/bsdconfig/share/device.subr