tuntap: Don't down tap interfaces if LINK0 is set
This commit is contained in:
parent
30de137493
commit
16760d8e28
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347404
@ -947,7 +947,8 @@ tunclose(struct cdev *dev, int foo, int bar, struct thread *td)
|
||||
}
|
||||
|
||||
/* For vmnet, we won't do most of the address/route bits */
|
||||
if ((tp->tun_flags & TUN_VMNET) != 0)
|
||||
if ((tp->tun_flags & TUN_VMNET) != 0 ||
|
||||
(l2tun && (ifp->if_flags & IFF_LINK0) != 0))
|
||||
goto out;
|
||||
|
||||
if (ifp->if_flags & IFF_UP) {
|
||||
|
Loading…
Reference in New Issue
Block a user