Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2020 11:00:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 247201] stat()'ing /dev/tap results in a new interface
Message-ID:  <bug-247201-7501-OqePjwbick@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-247201-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-247201-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247201

--- Comment #2 from Fabian Keil <fk@fabiankeil.de> ---
Quoting the man page:
     If the sysctl(8) variable net.link.tap.devfs_cloning is non-zero, the tap
     interface permits opens on the special control device /dev/tap.  When
     this device is opened, tap will return a handle for the lowest unused tap
     device (use devname(3) to determine which).
https://www.freebsd.org/cgi/man.cgi?query=tap&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE&arch=default&format=html

It does not mention that stat()'ing is sufficient to trigger this mechanism.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247201-7501-OqePjwbick>