aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/netgraph
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-10-23 04:28:11 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-10-23 04:28:11 +0000
commitb58a8a3b1d5cdaf3b9f89a6ee064a59b1bb84326 (patch)
treeda0a6d48db55b43982988a91a3e4b738558ea7c8 /sys/modules/netgraph
parent0fe9a7da10f555dd75c1e5647e14b4dfa3c86c4e (diff)
Notes
Diffstat (limited to 'sys/modules/netgraph')
-rw-r--r--sys/modules/netgraph/tty/ng_tty.418
-rw-r--r--sys/modules/netgraph/tty/ng_tty.818
-rw-r--r--sys/modules/netgraph/vjc/ng_vjc.42
-rw-r--r--sys/modules/netgraph/vjc/ng_vjc.82
4 files changed, 10 insertions, 30 deletions
diff --git a/sys/modules/netgraph/tty/ng_tty.4 b/sys/modules/netgraph/tty/ng_tty.4
index 660b46c2c5af..53141160ff53 100644
--- a/sys/modules/netgraph/tty/ng_tty.4
+++ b/sys/modules/netgraph/tty/ng_tty.4
@@ -42,14 +42,16 @@
.Nm ng_tty
.Nd netgraph node type that is also a line discipline
.Sh SYNOPSIS
+.Fd #include <sys/ttycom.h>
.Fd #include <netgraph/ng_message.h>
.Fd #include <netgraph/ng_tty.h>
.Sh DESCRIPTION
The
.Nm tty
node type is both a netgraph node type and a line discipline.
-A new node is created when the corresponding line discipline is
-registered on a tty device (see
+A new node is created when the corresponding line discipline,
+.Dv NETGRAPHDISC ,
+is registered on a tty device (see
.Xr tty 4 ")."
.Pp
The node has a single hook called
@@ -112,18 +114,6 @@ The
control message is not valid, and always returns the error
.Er EOPNOTSUPP .
.Sh BUGS
-The
-.Nm tty
-type registers its line discipline when the type is installed,
-where it is dynamically assigned an integer index.
-Unfortunately, there's no way to know what this integer is
-except by reading the output of
-.Xr dmesg 8 .
-The fix for this is to have line disciplines identified by
-unique ASCII strings instead of fixed integer constants,
-or else to assign one of those constants to
-.Nm ng_tty .
-.Pp
The serial driver code also has a notion of a ``hot character.''
Unfortunately, this value is statically defined in terms of the
line discipline and cannot be changed.
diff --git a/sys/modules/netgraph/tty/ng_tty.8 b/sys/modules/netgraph/tty/ng_tty.8
index 660b46c2c5af..53141160ff53 100644
--- a/sys/modules/netgraph/tty/ng_tty.8
+++ b/sys/modules/netgraph/tty/ng_tty.8
@@ -42,14 +42,16 @@
.Nm ng_tty
.Nd netgraph node type that is also a line discipline
.Sh SYNOPSIS
+.Fd #include <sys/ttycom.h>
.Fd #include <netgraph/ng_message.h>
.Fd #include <netgraph/ng_tty.h>
.Sh DESCRIPTION
The
.Nm tty
node type is both a netgraph node type and a line discipline.
-A new node is created when the corresponding line discipline is
-registered on a tty device (see
+A new node is created when the corresponding line discipline,
+.Dv NETGRAPHDISC ,
+is registered on a tty device (see
.Xr tty 4 ")."
.Pp
The node has a single hook called
@@ -112,18 +114,6 @@ The
control message is not valid, and always returns the error
.Er EOPNOTSUPP .
.Sh BUGS
-The
-.Nm tty
-type registers its line discipline when the type is installed,
-where it is dynamically assigned an integer index.
-Unfortunately, there's no way to know what this integer is
-except by reading the output of
-.Xr dmesg 8 .
-The fix for this is to have line disciplines identified by
-unique ASCII strings instead of fixed integer constants,
-or else to assign one of those constants to
-.Nm ng_tty .
-.Pp
The serial driver code also has a notion of a ``hot character.''
Unfortunately, this value is statically defined in terms of the
line discipline and cannot be changed.
diff --git a/sys/modules/netgraph/vjc/ng_vjc.4 b/sys/modules/netgraph/vjc/ng_vjc.4
index bc0a8b1efcd7..fc37bf809d85 100644
--- a/sys/modules/netgraph/vjc/ng_vjc.4
+++ b/sys/modules/netgraph/vjc/ng_vjc.4
@@ -158,7 +158,7 @@ This node shuts down upon receipt of a
.Dv NGM_SHUTDOWN
control message, or when all hooks have been disconnected.
.Sh BUGS
-This node type requires that the file
+When used as a loadable kernel module, this node type requires that the file
.Dv "net/slcompress.c"
was compiled into the kernel. Currently the only way to insure this
is to include the
diff --git a/sys/modules/netgraph/vjc/ng_vjc.8 b/sys/modules/netgraph/vjc/ng_vjc.8
index bc0a8b1efcd7..fc37bf809d85 100644
--- a/sys/modules/netgraph/vjc/ng_vjc.8
+++ b/sys/modules/netgraph/vjc/ng_vjc.8
@@ -158,7 +158,7 @@ This node shuts down upon receipt of a
.Dv NGM_SHUTDOWN
control message, or when all hooks have been disconnected.
.Sh BUGS
-This node type requires that the file
+When used as a loadable kernel module, this node type requires that the file
.Dv "net/slcompress.c"
was compiled into the kernel. Currently the only way to insure this
is to include the