commit 252be4c402afa5c4e35b827f272e3c52e8dbe46f Author: Aaron LI <a...@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