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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to