git: kernel - Fix multiple issues with if_tap and if_tun cloning (2)
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Aug 12 15:39:03 PDT 2020
commit ab54f4c87eaf45bbf6ad2112d4a8d35b23f3e089
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Aug 12 15:37:07 2020 -0700
kernel - Fix multiple issues with if_tap and if_tun cloning (2)
* For tap and tun, detect whether created by ifconfig or
open("/dev/tap"...) etc and set MANUALMAKE flag appropriately.
* When closing a tap or tun interface and MANUALMAKE is not set,
destroy the device, softc, and interface via if_clone_destroy().
This fixes another issue where the various bitmaps could get out
of sync.
Summary of changes:
sys/net/tap/if_tap.c | 14 ++++++++++----
sys/net/tun/if_tun.c | 14 ++++++++++----
2 files changed, 20 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab54f4c87eaf45bbf6ad2112d4a8d35b23f3e089
--
DragonFly BSD source repository
More information about the Commits
mailing list