diff --git a/etc/etc.sbmips/MAKEDEV b/etc/etc.sbmips/MAKEDEV index f553b701383e..3339bb7dec5b 100644 --- a/etc/etc.sbmips/MAKEDEV +++ b/etc/etc.sbmips/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: MAKEDEV,v 1.5 2002/06/19 15:00:07 wiz Exp $ +# $NetBSD: MAKEDEV,v 1.6 2002/07/11 00:19:08 simonb Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -106,6 +106,7 @@ # tun* network tunnel driver # uk* unknown SCSI device # systrace syscall tracer +# kttcp kernel ttcp helper dialin=0 dialout=524288 @@ -138,6 +139,7 @@ all) sh $0 altq sh $0 clockctl sh $0 systrace + sh $0 kttcp ;; minimal) @@ -619,6 +621,12 @@ systrace) chmod 644 systrace ;; +kttcp) + rm -f kttcp + mknod kttcp c 71 0 + chmod 600 kttcp + ;; + local) umask 0 sh $0.local all diff --git a/sys/arch/sbmips/sbmips/conf.c b/sys/arch/sbmips/sbmips/conf.c index 930f113fddb5..5c3330f6f776 100644 --- a/sys/arch/sbmips/sbmips/conf.c +++ b/sys/arch/sbmips/sbmips/conf.c @@ -1,4 +1,4 @@ -/* $NetBSD: conf.c,v 1.4 2002/06/17 16:33:16 christos Exp $ */ +/* $NetBSD: conf.c,v 1.5 2002/07/11 00:17:39 simonb Exp $ */ /* * Copyright (c) 1992, 1993 @@ -38,7 +38,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.4 2002/06/17 16:33:16 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.5 2002/07/11 00:17:39 simonb Exp $"); #include "opt_systrace.h" @@ -269,6 +269,8 @@ cdev_decl(isdntel); #include "clockctl.h" cdev_decl(clockctl); +#include "kttcp.h" +cdev_decl(kttcp); #include "pci.h" cdev_decl(pci); @@ -358,6 +360,7 @@ struct cdevsw cdevsw[] = #else cdev_notdef(), /* 70: system call tracing */ #endif + cdev__oci_init(NKTTCP,kttcp), /* 71: kernel ttcp helper */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); @@ -468,6 +471,7 @@ static int chrtoblktbl[] = { /* 68 */ NODEV, /* 69 */ NODEV, /* 70 */ NODEV, + /* 71 */ NODEV, }; /*