|
|
| TAPSDEBUG | The argument should be a pointer to an int; this sets the internal debugging variable to that value. What, if anything, this variable controls is not documented here; see the source code. |
| TAPGDEBUG | The argument should be a pointer to an int; this stores the internal debugging variables value into it. |
| FIONBIO | Turn non-blocking I/O for reads off or on, according as the argument int s value is or is not zero (Writes are always nonblocking). |
| FIOASYNC | Turn asynchronous I/O for reads (i.e., generation of SIGIO when data is available to be read) off or on, according as the argument int s value is or is not zero. |
| FIONREAD | If any frames are queued to be read, store the size of the first one into the argument int; otherwise, store zero. |
| TIOCSPGRP | Set the process group to receive SIGIO signals, when asynchronous I/O is enabled, to the argument int value. |
| TIOCGPGRP | Retrieve the process group value for SIGIO signals into the argument int value. |
| SIOCGIFADDR | Retrieve the Media Access Control (MAC) address of the "remote" side. This command is used by the VMware port and expected to be executed on descriptor, associated with control device (usually /dev/vmnet N or /dev/tap N). The buffer, which is passed as the argument, is expected to have enough space to store the MAC address. At the open time both "local" and "remote" MAC addresses are the same, so this command could be used to retrieve the "local" MAC address. |
| SIOCSIFADDR | Set the Media Access Control (MAC) address of the "remote" side. This command is used by VMware port and expected to be executed on a descriptor, associated with control device (usually /dev/vmnet N). |
The control device also supports select(2) for read; selecting for write is pointless, and always succeeds, since writes are always non-blocking.
On the last close of the data device, the interface is brought down (as if with "ifconfig tap N down") unless the device is a VMnet device. All queued frames are thrown away. If the interface is up when the data device is not open, output frames are thrown away rather than letting them pile up.
The tap device can also be used with the VMware port as a replacement for the old VMnet device driver. The driver uses the minor number to select between tap and vmnet devices. VMnet minor numbers begin at 0x800000 + N; where N is a VMnet unit number. In this case the control device is expected to be /dev/vmnet N, and the network interface will be vmnet N. Additionally, VMnet devices do not ifconfig(8) themselves down when the control device is closed. Everything else is the same.
In addition to the above mentioned ioctl(2) calls, there is an additional one for the VMware port.
| VMIO_SIOCSIFFLAGS | VMware SIOCSIFFLAGS. |
inet(4), intro(4)
| July 9, 2000 | TAP (4) |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.