summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_conf.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-10-23 04:28:11 +0000
committerjulian <julian@FreeBSD.org>1999-10-23 04:28:11 +0000
commitbd6712748945561c31293c9a9bbafee61470548b (patch)
treeda0a6d48db55b43982988a91a3e4b738558ea7c8 /sys/kern/tty_conf.c
parent309540210a9e865a6d20be7df5e9de244a48b047 (diff)
downloadFreeBSD-src-bd6712748945561c31293c9a9bbafee61470548b.zip
FreeBSD-src-bd6712748945561c31293c9a9bbafee61470548b.tar.gz
Now that Netgraph is in the system there are some cleanups we can do.
Also save a slightly closer to completion version of the PPPOE code. Submitted by: Archie Cobbs <archie@freebsd.org>
Diffstat (limited to 'sys/kern/tty_conf.c')
-rw-r--r--sys/kern/tty_conf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/tty_conf.c b/sys/kern/tty_conf.c
index 43c73be..1d41f29 100644
--- a/sys/kern/tty_conf.c
+++ b/sys/kern/tty_conf.c
@@ -47,7 +47,7 @@
#include <sys/conf.h>
#ifndef MAXLDISC
-#define MAXLDISC 8
+#define MAXLDISC 9
#endif
static l_open_t l_noopen;
@@ -82,15 +82,16 @@ struct linesw linesw[MAXLDISC] =
NODISC(3), /* TABLDISC */
NODISC(4), /* SLIPDISC */
NODISC(5), /* PPPDISC */
- NODISC(6), /* loadable */
+ NODISC(6), /* NETGRAPHDISC */
NODISC(7), /* loadable */
+ NODISC(8), /* loadable */
};
int nlinesw = sizeof (linesw) / sizeof (linesw[0]);
static struct linesw nodisc = NODISC(0);
-#define LOADABLE_LDISC 6
+#define LOADABLE_LDISC 7
/*
* ldisc_register: Register a line discipline.
*
@@ -125,7 +126,7 @@ ldisc_register(discipline, linesw_p)
/*
* ldisc_deregister: Deregister a line discipline obtained with
- * ldisc_register. Can only deregister "loadable" ones now.
+ * ldisc_register.
*
* discipline: Index for discipline to unload.
*/
@@ -133,7 +134,7 @@ void
ldisc_deregister(discipline)
int discipline;
{
- if (discipline >= LOADABLE_LDISC && discipline < MAXLDISC) {
+ if (discipline < MAXLDISC) {
linesw[discipline] = nodisc;
}
}
OpenPOWER on IntegriCloud