Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2019 18:54:29 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347404 - head/sys/net
Message-ID:  <201905091854.x49IsTXi098278@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905091854.x49IsTXi098278>