diff options
author | brooks <brooks@FreeBSD.org> | 2001-09-05 01:06:21 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2001-09-05 01:06:21 +0000 |
commit | c1c22aa95811f14c864a920cab1a495208b41119 (patch) | |
tree | 232aad8bc8d2978f54d73954e7f35963f74dd189 /share/man/man4/tap.4 | |
parent | ec8731ce8003fe6694736f4f0c282e91286e2c92 (diff) | |
download | FreeBSD-src-c1c22aa95811f14c864a920cab1a495208b41119.zip FreeBSD-src-c1c22aa95811f14c864a920cab1a495208b41119.tar.gz |
Add cloning support for the tap(4) device similar to that in the tun(4)
device.
Submitted by: Maksim Yevmenkin <myevmenk@digisle.net>
Diffstat (limited to 'share/man/man4/tap.4')
-rw-r--r-- | share/man/man4/tap.4 | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/share/man/man4/tap.4 b/share/man/man4/tap.4 index 48f2bc3..b3ed620 100644 --- a/share/man/man4/tap.4 +++ b/share/man/man4/tap.4 @@ -36,11 +36,50 @@ and a character-special device interface. .Pp The network interfaces are named -.Sy tap Ns Ar 0 , -.Sy tap Ns Ar 1 , -etc, as many as were made by -.Xr MAKEDEV 8 . -Each one supports the usual Ethernet network-interface +.Dq Li tap0 , +.Dq Li tap1 , +etc., one for each control device that has been opened. +These Ethernet network interfaces persist until +.Pa if_tap.ko +module is unloaded (if +.Nm +is built into your kernel, the network interfaces can not be removed). +.Pp +On older systems without +.Xr devfs 5 +support, +.Xr MAKEDEV 8 +should be used to create the initial control devices and the task +of locating an unused device is left up to the opener (a +.Nm +device is usually obtained by attempting to open +.Pa /dev/tap0 , +and if that fails +.Pa /dev/tap1 +etc., until an +.Va errno +of +.Er EBUSY +is not received). +.Pp +On systems with +.Xr devfs 5 +support, +.Nm +permits opens on the special control device +.Pa /dev/tap . +When this device is opened, +.Nm +will return a handle for the lowest unused +.Nm +device (use +.Xr devname 3 +to determine which). +Control devices (once successfully opened) persist until +.Pa if_tap.ko +is unloaded in the same way that network interfaces persist (see above). +.Pp +Each interface supports the usual Ethernet network interface .Xr ioctl 2 Ns s , such as .Dv SIOCSIFADDR @@ -199,7 +238,7 @@ to select between and .Nm vmnet devices. VMnet minor numbers begin at -.Va 0x10000 +.Va 0x800000 + .Va N . Where |