git: if_tun: Disallow to destroy an opened device

Aaron LI aly at crater.dragonflybsd.org
Thu Aug 30 06:41:06 PDT 2018


commit 252be4c402afa5c4e35b827f272e3c52e8dbe46f
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Aug 30 21:36:07 2018 +0800

    if_tun: Disallow to destroy an opened device
    
    When a tun device (created via 'ifconfig') is opened, disallow to destroy
    it (e.g., ifconfig destroy).  Otherwise, a panic occurs when the caller
    closes the device, since it has been already destroyed.
    
    Following the previous fix to if_tap.

Summary of changes:
 sys/net/tun/if_tun.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/252be4c402afa5c4e35b827f272e3c52e8dbe46f


-- 
DragonFly BSD source repository


More information about the Commits mailing list