summaryrefslogtreecommitdiffstats
path: root/etc/MAKEDEV
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>2000-07-20 17:01:10 +0000
committernsayer <nsayer@FreeBSD.org>2000-07-20 17:01:10 +0000
commit14503a8247dc9e15f6d248a31949e5e8033da4a0 (patch)
treea432fe692d09ec4039d50d441e00afe94a7c54fa /etc/MAKEDEV
parentb7fd852ec4b27e86f5a18ccc623da33062abcfb2 (diff)
downloadFreeBSD-src-14503a8247dc9e15f6d248a31949e5e8033da4a0.zip
FreeBSD-src-14503a8247dc9e15f6d248a31949e5e8033da4a0.tar.gz
Add the tap driver.
The tap driver is used to present a virtual Ethernet interface to the system. Packets presented by the network stack to the interface are made available to a character device in /dev. With tap and the bridge code, you can make remote bridge configurations where both sides of the bridge are separated by userland daemons. This driver also has a special naming hack to allow it to serve a similar purpose to the vmware port. Submitted by: myevmenkin@att.com, vsilyaev@mindspring.com
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r--etc/MAKEDEV12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index ca8fa91..025d36e 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -128,6 +128,7 @@
# gsc Genius GS-4500 hand scanner
# joy pc joystick
# tun* Tunneling IP device
+# tap* Ethernet Tunneling device
# snp* tty snoop devices
# spigot Video Spigot video acquisition card
# ctx* Cortex-I video acquisition card
@@ -256,6 +257,7 @@ all)
sh MAKEDEV urio0 # cdev, USB devices too
sh MAKEDEV bpf0 bpf1 bpf2 bpf3 # cdev, network
sh MAKEDEV ipl tun0 tun1 tun2 tun3 # cdev, network
+ sh MAKEDEV tap0 tap1 tap2 tap3 # cdev, network
sh MAKEDEV ch0 perfmon tw0 # cdev, miscellaneous
sh MAKEDEV apm apmctl card0 card1 card2 card3 # cdev, laptop
sh MAKEDEV pass4 xpt2 # cdev, CAM
@@ -290,6 +292,7 @@ fixit)
sh MAKEDEV smb0 # cdev, SMBus device
sh MAKEDEV ums0 # cdev, USB devices
sh MAKEDEV tun0 # cdev, network
+ sh MAKEDEV tap0 # cdev, network
sh MAKEDEV ch0 # cdev, miscellaneous
sh MAKEDEV apm apmctl card0 # cdev, laptop
sh MAKEDEV pass1 xpt1 # cdev, CAM
@@ -1441,6 +1444,15 @@ tun*)
done
;;
+tap*)
+ ntap=`expr $i : 'tap\(.*\)$'`
+ unit=0
+ while [ $unit -le $ntap ]; do
+ mknod tap$unit c 149 $unit root:network
+ unit=$(($unit + 1))
+ done
+ ;;
+
sysmouse)
mknod sysmouse c 12 128
mknod consolectl c 12 255
OpenPOWER on IntegriCloud