From 4562620cd408ba60c8b7d945ef02c784f7242e3c Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Wed, 8 Dec 1999 18:51:13 +0000 Subject: [PATCH] Include net/slcompress.c in the build of this module. --- share/man/man4/ng_vjc.4 | 20 ++++++++------------ sys/modules/netgraph/vjc/Makefile | 4 +++- sys/modules/netgraph/vjc/ng_vjc.4 | 20 ++++++++------------ sys/modules/netgraph/vjc/ng_vjc.8 | 20 ++++++++------------ 4 files changed, 27 insertions(+), 37 deletions(-) diff --git a/share/man/man4/ng_vjc.4 b/share/man/man4/ng_vjc.4 index 904e65dbc81c..c86be55c68b5 100644 --- a/share/man/man4/ng_vjc.4 +++ b/share/man/man4/ng_vjc.4 @@ -176,18 +176,6 @@ This node shuts down upon receipt of a .Dv NGM_SHUTDOWN control message, or when all hooks have been disconnected. .Sh BUGS -When used as a loadable kernel module, this node type requires the file -.Dv "net/slcompress.c" -to have been compiled into the kernel. Currently the only way to insure this -is to include the -.Dv slip , -.Dv ppp , -or -.Dv i4bipr -pseudo-devices in your kernel compilation. In the future there should -be a kernel option that causes inclusion of this file without requiring -one of these drivers. -.Pp Because the initialization routine in the kernel implementation of Van Jacobsen compression initializes both compression and decompression at once, this node does not allow compression and decompression to @@ -195,6 +183,14 @@ be enabled in separate operations. In order to enable one when the other is already enabled, first both must be disabled, then both enabled. This of course resets the node state. This restriction may be lifted in a later version. +.Pp +When built as a loadable kernel module, this module includes the file +.Dv "net/slcompress.c" . +Although loading the module should fail if +.Dv "net/slcompress.c" +already exists in the kernel, currently it does not, and the duplicate +copies of the file do not interfere. +However, this may change in the future. .Sh SEE ALSO .Xr netgraph 4 , .Xr ng_ppp 8 , diff --git a/sys/modules/netgraph/vjc/Makefile b/sys/modules/netgraph/vjc/Makefile index 510337fc2a91..b27f7675a027 100644 --- a/sys/modules/netgraph/vjc/Makefile +++ b/sys/modules/netgraph/vjc/Makefile @@ -2,8 +2,10 @@ # $Whistle: Makefile,v 1.1 1999/01/24 06:48:07 archie Exp $ KMOD= ng_vjc -SRCS= ng_vjc.c +SRCS= ng_vjc.c slcompress.c MAN8= ng_vjc.8 KMODDEPS= netgraph +.PATH: ${.CURDIR}/../../../net + .include diff --git a/sys/modules/netgraph/vjc/ng_vjc.4 b/sys/modules/netgraph/vjc/ng_vjc.4 index 904e65dbc81c..c86be55c68b5 100644 --- a/sys/modules/netgraph/vjc/ng_vjc.4 +++ b/sys/modules/netgraph/vjc/ng_vjc.4 @@ -176,18 +176,6 @@ This node shuts down upon receipt of a .Dv NGM_SHUTDOWN control message, or when all hooks have been disconnected. .Sh BUGS -When used as a loadable kernel module, this node type requires the file -.Dv "net/slcompress.c" -to have been compiled into the kernel. Currently the only way to insure this -is to include the -.Dv slip , -.Dv ppp , -or -.Dv i4bipr -pseudo-devices in your kernel compilation. In the future there should -be a kernel option that causes inclusion of this file without requiring -one of these drivers. -.Pp Because the initialization routine in the kernel implementation of Van Jacobsen compression initializes both compression and decompression at once, this node does not allow compression and decompression to @@ -195,6 +183,14 @@ be enabled in separate operations. In order to enable one when the other is already enabled, first both must be disabled, then both enabled. This of course resets the node state. This restriction may be lifted in a later version. +.Pp +When built as a loadable kernel module, this module includes the file +.Dv "net/slcompress.c" . +Although loading the module should fail if +.Dv "net/slcompress.c" +already exists in the kernel, currently it does not, and the duplicate +copies of the file do not interfere. +However, this may change in the future. .Sh SEE ALSO .Xr netgraph 4 , .Xr ng_ppp 8 , diff --git a/sys/modules/netgraph/vjc/ng_vjc.8 b/sys/modules/netgraph/vjc/ng_vjc.8 index 904e65dbc81c..c86be55c68b5 100644 --- a/sys/modules/netgraph/vjc/ng_vjc.8 +++ b/sys/modules/netgraph/vjc/ng_vjc.8 @@ -176,18 +176,6 @@ This node shuts down upon receipt of a .Dv NGM_SHUTDOWN control message, or when all hooks have been disconnected. .Sh BUGS -When used as a loadable kernel module, this node type requires the file -.Dv "net/slcompress.c" -to have been compiled into the kernel. Currently the only way to insure this -is to include the -.Dv slip , -.Dv ppp , -or -.Dv i4bipr -pseudo-devices in your kernel compilation. In the future there should -be a kernel option that causes inclusion of this file without requiring -one of these drivers. -.Pp Because the initialization routine in the kernel implementation of Van Jacobsen compression initializes both compression and decompression at once, this node does not allow compression and decompression to @@ -195,6 +183,14 @@ be enabled in separate operations. In order to enable one when the other is already enabled, first both must be disabled, then both enabled. This of course resets the node state. This restriction may be lifted in a later version. +.Pp +When built as a loadable kernel module, this module includes the file +.Dv "net/slcompress.c" . +Although loading the module should fail if +.Dv "net/slcompress.c" +already exists in the kernel, currently it does not, and the duplicate +copies of the file do not interfere. +However, this may change in the future. .Sh SEE ALSO .Xr netgraph 4 , .Xr ng_ppp 8 ,