git: DragonFly_RELEASE_5_4 rc.d/netif: Rework wlan interface configuration

Aaron LI aly at crater.dragonflybsd.org
Mon Dec 17 17:28:59 PST 2018


commit 8bd3047b2ba8a0b26353974c344fb663b789ab98
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Dec 12 11:52:24 2018 +0800

    rc.d/netif: Rework wlan interface configuration
    
    * wlan interfaces are more similar to clonable interfaces rather than
      vlan interfaces, so move the relevant code from childif_create() to
      network.subr as wlan_up(), which will be called to create the wlan
      interfaces before setting up them.
    
      Now, list_net_interfaces() shouldn't list "net.wlan.devices".
    
    * Add the wlan_down() function in network.subr to destroy the wlan
      devices.
    
    * Meanwhile, fix childif_destroy() to properly destroy the vlan
      interfaces created by childif_create().  Also tweak the order of this
      function in netif_stop().
    
    * The 2-second delay in netif_start() doesn't apply anymore, since the
      DHCP and WPA configurations are now handled in ifconfig_up() called by
      ifn_start().
    
    This patch is loosely based on FreeBSD's code.  Thanks to them.

Summary of changes:
 etc/network.subr | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 etc/rc.d/netif   | 55 +++++++++++++++----------------------------
 2 files changed, 90 insertions(+), 37 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8bd3047b2ba8a0b26353974c344fb663b789ab98


-- 
DragonFly BSD source repository



More information about the Commits mailing list