git: if_tap/if_tun - Remove pre-created devices

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 30 12:56:54 PDT 2019


commit f1e9a4fff5aaac2be3a291dbfea94f94755991b8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jul 30 12:29:02 2019 -0700

    if_tap/if_tun - Remove pre-created devices
    
    * The pre-created devices cause bitmap confusion between the
      if autoclone bitmap tracking in netif and the bitmap tracking
      in the device drivers.
    
      Just remove the pre-created devices entirely.  Users must manually
      create the appropriate tap or tun interface, or use the auto-cloning
      device (/dev/tap and /dev/tun).
    
    * Fixes panics and auto clone create errors related to this confusion.
    
    Reported-by: tuxillo

Summary of changes:
 sys/net/tap/if_tap.c | 24 +++++-------------------
 sys/net/tun/if_tun.c | 22 +++-------------------
 2 files changed, 8 insertions(+), 38 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f1e9a4fff5aaac2be3a291dbfea94f94755991b8


-- 
DragonFly BSD source repository


More information about the Commits mailing list