svn commit: r347404 - head/sys/net

Kyle Evans kevans at FreeBSD.org
Thu May 9 18:54:30 UTC 2019


Author: kevans
Date: Thu May  9 18:54:29 2019
New Revision: 347404
URL: https://svnweb.freebsd.org/changeset/base/347404

Log:
  tuntap: Don't down tap interfaces if LINK0 is set

Modified:
  head/sys/net/if_tuntap.c

Modified: head/sys/net/if_tuntap.c
==============================================================================
--- head/sys/net/if_tuntap.c	Thu May  9 18:23:09 2019	(r347403)
+++ head/sys/net/if_tuntap.c	Thu May  9 18:54:29 2019	(r347404)
@@ -947,7 +947,8 @@ tunclose(struct cdev *dev, int foo, int bar, struct th
 	}
 
 	/* 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) {


More information about the svn-src-all mailing list