[Bug 247201] stat()'ing /dev/tap results in a new interface

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 12 11:00:49 UTC 2020


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

--- Comment #2 from Fabian Keil <fk at 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.


More information about the freebsd-net mailing list