Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Create tap (cloning), tap0 .. tap3 in /dev by default.



details:   https://anonhg.NetBSD.org/src/rev/07c1849e1405
branches:  trunk
changeset: 572597:07c1849e1405
user:      cube <cube%NetBSD.org@localhost>
date:      Sat Jan 08 22:31:28 2005 +0000

description:
Create tap (cloning), tap0 .. tap3 in /dev by default.

diffstat:

 etc/MAKEDEV.tmpl |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r ac2e059fb5cb -r 07c1849e1405 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Sat Jan 08 22:29:38 2005 +0000
+++ b/etc/MAKEDEV.tmpl  Sat Jan 08 22:31:28 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.37 2005/01/08 20:32:10 joff Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.38 2005/01/08 22:31:28 cube Exp $
 #
 # Copyright (c) 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -266,6 +266,7 @@
 #      stic*   PixelStamp interface chip
 #      sysmon  System Monitoring hardware
 #      systrace syscall tracer
+#      tap*    virtual Ethernet device
 #      tun*    network tunnel driver
 #      twe     3ware Escalade control interface
 #      uk*     unknown SCSI device
@@ -435,6 +436,7 @@
        makedev lkm clockctl
        makedev local
        makedev atabus0 atabus1 atabus2 atabus3
+       makedev tap tap0 tap1 tap2 tap3
        ;;
 
 init)
@@ -1470,6 +1472,18 @@
        mkdev drvctl c %drvctl_chr% 0 644
        ;;
 
+tap*)
+       unit=${i#tap}
+       case "$unit" in
+       [0-9]*)
+               mkdev tap${unit} c %tap_chr% ${unit} 600
+               ;;
+       *)
+               mkdev tap c %tap_chr% 0xfffff 600
+               ;;
+       esac
+       ;;
+
 midevend)
 %MI_DEVICES_END%
 local)



Home | Main Index | Thread Index | Old Index