summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUgen J.S. Antsilevich <ugen@FreeBSD.org>1995-02-14 21:16:43 +0000
committerUgen J.S. Antsilevich <ugen@FreeBSD.org>1995-02-14 21:16:43 +0000
commit71ac9ea4e9b05234bb2568f369d5405f4eba162a (patch)
tree654853c2e6fc2a9db0c3ebb969772b16338f0106
parent99fd7a9b42e9f4c79114bb9209c561eaca5ba409 (diff)
Notes
-rw-r--r--sys/i386/i386/conf.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/sys/i386/i386/conf.c b/sys/i386/i386/conf.c
index 8215e01aed24..827bfbe47576 100644
--- a/sys/i386/i386/conf.c
+++ b/sys/i386/i386/conf.c
@@ -42,7 +42,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 5.8 (Berkeley) 5/12/91
- * $Id: conf.c,v 1.60 1995/02/09 11:59:40 jkh Exp $
+ * $Id: conf.c,v 1.61 1995/02/11 05:54:04 jkh Exp $
*/
#include <sys/param.h>
@@ -407,6 +407,23 @@ extern struct tty pt_tty[];
#define ptsstop nullstop
#endif
+
+#include "snp.h"
+#if NSNP > 0
+d_open_t snpopen;
+d_close_t snpclose;
+d_rdwr_t snpread;
+d_select_t snpselect;
+d_ioctl_t snpioctl;
+#else
+#define snpopen nxopen
+#define snpclose nxclose
+#define snpread nxread
+#define snpioctl nxioctl
+#define snpselect nxselect
+#endif
+
+
/* /dev/klog */
d_open_t logopen;
d_close_t logclose;
@@ -970,6 +987,9 @@ struct cdevsw cdevsw[] =
{ tunopen, tunclose, tunread, tunwrite, /*52*/
tunioctl, nostop, nullreset, NULL, /* tunnel */
tunselect, nommap, NULL },
+ { snpopen, snpclose, snpread, nowrite, /*53*/
+ snpioctl, nostop, nullreset, NULL, /* snoop */
+ snpselect, nommap, NULL },
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);