summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2001-09-04 18:53:37 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2001-09-04 18:53:37 +0000
commit84d72141847be71f24b4694e0da025c0b493c3e4 (patch)
tree0c6dbffbc0f6543520387487688293739e5ab7bb
parentda97bcd6c615822b94e9a03bc543eb7f28159eb0 (diff)
enable pf and altq; jason@ ok
-rw-r--r--etc/etc.sparc64/MAKEDEV17
-rw-r--r--sys/arch/sparc64/sparc64/conf.c11
2 files changed, 22 insertions, 6 deletions
diff --git a/etc/etc.sparc64/MAKEDEV b/etc/etc.sparc64/MAKEDEV
index 5880dab7d43..996d3437bc6 100644
--- a/etc/etc.sparc64/MAKEDEV
+++ b/etc/etc.sparc64/MAKEDEV
@@ -1,6 +1,7 @@
+
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.2 2001/09/04 17:53:16 todd Exp $
+# $OpenBSD: MAKEDEV,v 1.3 2001/09/04 18:53:36 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@@ -66,6 +67,8 @@
# cgsix*
# cgfourteen*
# bpf* Berkeley Packet Filter
+# pf* Packet Filter
+# altq/ ALTQ control interface
# lkm loadable kernel modules interface
# audio* audio device
# tun* network tunnel driver
@@ -178,7 +181,7 @@ all)
R vnd0 vnd1 ccd0 ccd1 ccd2 ccd3
R raid0 raid1 raid2 raid3
R bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9
- R tun0 tun1 tun2 random ses0 uk0 uk1 ss0 ss1
+ R pf altq tun0 tun1 tun2 random ses0 uk0 uk1 ss0 ss1
R fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H
R fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H
R lkm audio0 local
@@ -272,7 +275,7 @@ cgthree*) M cgthree$U c 55 $U 666;;
cgsix*) M cgsix$U c 67 $U 666;;
cgfourteen*) M cgfourteen$U c 99 $U 666;;
fd)
- mkdir -p fd
+ RMlist="mkdir -p fd;$RMlist"
n=0
while [ $n -lt 64 ];do M fd/$n c 24 $n;n=$(( $n + 1 ));done
MKlist="$MKlist;chmod 555 fd";;
@@ -364,6 +367,14 @@ audio*)
M mixer$u c 69 $(( $U + 16 ))
M audio$u c 69 $(( $U + 128 ))
M audioctl$u c 69 $(( $U + 192 ));;
+pf*)
+ M pf c 73 0 600;;
+altq)
+ RMlist="mkdir -p altq;$RMlist"
+ for d in altq cbq wfq afm fifoq red rio localq hfsc cdnr blue priq; do
+ M altq/$d c 74 $U 644
+ U=$(( $U + 1 ))
+ done;;
bpf*)
M bpf$U c 105 $U 600;;
tun*)
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c
index a1849b9755d..510976c08c8 100644
--- a/sys/arch/sparc64/sparc64/conf.c
+++ b/sys/arch/sparc64/sparc64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.4 2001/08/23 15:18:54 art Exp $ */
+/* $OpenBSD: conf.c,v 1.5 2001/09/04 18:53:36 todd Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
@@ -116,6 +116,11 @@
#include "ses.h"
cdev_decl(ses);
+#include "pf.h"
+cdev_decl(pf);
+
+#include <altq/altqconf.h>
+
struct bdevsw bdevsw[] =
{
bdev_notdef(), /* 0 */
@@ -226,8 +231,8 @@ struct cdevsw cdevsw[] =
#endif
cdev_notdef(), /* 71 */
cdev_notdef(), /* 72 */
- cdev_notdef(), /* 73 */
- cdev_notdef(), /* 74 */
+ cdev_pf_init(NPF,pf), /* 73: packet filter */
+ cdev_altq_init(NALTQ,altq), /* 74: ALTQ control interface */
cdev_notdef(), /* 75 */
cdev_notdef(), /* 76 */
cdev_notdef(), /* 77 */