Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/tun.4
Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Lines | |||||
.Dq multi-af | .Dq multi-af | ||||
mode, where every packet is preceded with a four byte address family. | mode, where every packet is preceded with a four byte address family. | ||||
.It Dv TUNGIFHEAD | .It Dv TUNGIFHEAD | ||||
The argument should be a pointer to an | The argument should be a pointer to an | ||||
.Vt int ; | .Vt int ; | ||||
the ioctl sets the value to one if the device is in | the ioctl sets the value to one if the device is in | ||||
.Dq multi-af | .Dq multi-af | ||||
mode, and zero otherwise. | mode, and zero otherwise. | ||||
.It Dv TUNSTRANSIENT | |||||
The argument should be a pointer to an | |||||
.Va int ; | |||||
this sets the transient flag on | |||||
the | |||||
.Nm | |||||
device. | |||||
A transient | |||||
.Nm | |||||
will be destroyed upon last close. | |||||
.It Dv TUNGTRANSIENT | |||||
The argument should be a pointer to an | |||||
.Va int ; | |||||
this stores the current state (enabled or disabled) of the transient flag into | |||||
it. | |||||
.It Dv FIONBIO | .It Dv FIONBIO | ||||
Turn non-blocking I/O for reads off or on, according as the argument | Turn non-blocking I/O for reads off or on, according as the argument | ||||
.Vt int Ns 's | .Vt int Ns 's | ||||
value is or is not zero. | value is or is not zero. | ||||
(Writes are always non-blocking.) | (Writes are always non-blocking.) | ||||
.It Dv FIOASYNC | .It Dv FIOASYNC | ||||
Turn asynchronous I/O for reads | Turn asynchronous I/O for reads | ||||
(i.e., generation of | (i.e., generation of | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |