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=3D247201

--- 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=3Dtap&apropos=3D0&sektion=3D0&man=
path=3DFreeBSD+12.1-RELEASE&arch=3Ddefault&format=3Dhtml

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

--=20
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>