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

Aaron LI aly at crater.dragonflybsd.org
Fri Dec 14 06:21:12 PST 2018


commit 3928a593ab3010edcf0cb7727946eafd6f5cfd40
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/3928a593ab3010edcf0cb7727946eafd6f5cfd40


-- 
DragonFly BSD source repository



More information about the Commits mailing list