ng_ppp.4 (231564) | ng_ppp.4 (233648) |
---|---|
1.\" Copyright (c) 1996-1999 Whistle Communications, Inc. 2.\" All rights reserved. 3.\" 4.\" Subject to the following obligations and disclaimer of warranty, use and 5.\" redistribution of this software, in source or object code forms, with or 6.\" without modifications are expressly permitted by Whistle Communications; 7.\" provided, however, that: 8.\" 1. Any and all reproductions of the source or object code must include the --- 18 unchanged lines hidden (view full) --- 27.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 31.\" OF SUCH DAMAGE. 32.\" 33.\" Author: Archie Cobbs <archie@FreeBSD.org> 34.\" | 1.\" Copyright (c) 1996-1999 Whistle Communications, Inc. 2.\" All rights reserved. 3.\" 4.\" Subject to the following obligations and disclaimer of warranty, use and 5.\" redistribution of this software, in source or object code forms, with or 6.\" without modifications are expressly permitted by Whistle Communications; 7.\" provided, however, that: 8.\" 1. Any and all reproductions of the source or object code must include the --- 18 unchanged lines hidden (view full) --- 27.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 31.\" OF SUCH DAMAGE. 32.\" 33.\" Author: Archie Cobbs <archie@FreeBSD.org> 34.\" |
35.\" $FreeBSD: head/share/man/man4/ng_ppp.4 231564 2012-02-12 18:29:56Z ed $ | 35.\" $FreeBSD: head/share/man/man4/ng_ppp.4 233648 2012-03-29 05:02:12Z eadler $ |
36.\" $Whistle: ng_ppp.8,v 1.3 1999/01/25 23:46:27 archie Exp $ 37.\" 38.Dd December 28, 2006 39.Dt NG_PPP 4 40.Os 41.Sh NAME 42.Nm ng_ppp 43.Nd PPP protocol netgraph node type --- 83 unchanged lines hidden (view full) --- 127This mode is appropriate for the link authentication phase. 128As soon as the link is enabled, the PPP node will 129begin processing frames received on the link. 130.Sh COMPRESSION AND ENCRYPTION 131Compression is supported via two hooks, 132.Dv compress 133and 134.Dv decompress . | 36.\" $Whistle: ng_ppp.8,v 1.3 1999/01/25 23:46:27 archie Exp $ 37.\" 38.Dd December 28, 2006 39.Dt NG_PPP 4 40.Os 41.Sh NAME 42.Nm ng_ppp 43.Nd PPP protocol netgraph node type --- 83 unchanged lines hidden (view full) --- 127This mode is appropriate for the link authentication phase. 128As soon as the link is enabled, the PPP node will 129begin processing frames received on the link. 130.Sh COMPRESSION AND ENCRYPTION 131Compression is supported via two hooks, 132.Dv compress 133and 134.Dv decompress . |
135Compression and decompression can be enabled by toggling the | 135Compression and decompression can be enabled by toggling the |
136.Vt enableCompression | 136.Vt enableCompression |
137and | 137and |
138.Vt enableDecompression 139fields of the node configuration structure. 140(See below.) 141If 142.Vt enableCompression 143is set to 144.Dv NG_PPP_COMPRESS_SIMPLE , 145then all outgoing frames are sent to the | 138.Vt enableDecompression 139fields of the node configuration structure. 140(See below.) 141If 142.Vt enableCompression 143is set to 144.Dv NG_PPP_COMPRESS_SIMPLE , 145then all outgoing frames are sent to the |
146.Dv compress | 146.Dv compress |
147hook and all packets received on this hook are expected to be 148compressed, so the COMPD tag is put on them unconditionally. 149If 150.Vt enableCompression 151is set to 152.Dv NG_PPP_COMPRESS_FULL , | 147hook and all packets received on this hook are expected to be 148compressed, so the COMPD tag is put on them unconditionally. 149If 150.Vt enableCompression 151is set to 152.Dv NG_PPP_COMPRESS_FULL , |
153then packets received on the 154.Dv compress | 153then packets received on the 154.Dv compress |
155hook are resent as is. 156The compressor node should put the tag, if the packet was compressed. | 155hook are resent as is. 156The compressor node should put the tag, if the packet was compressed. |
157If | 157If |
158.Vt enableDecompression | 158.Vt enableDecompression |
159is set to | 159is set to |
160.Dv NG_PPP_DECOMPRESS_SIMPLE , 161then the node will sent to the | 160.Dv NG_PPP_DECOMPRESS_SIMPLE , 161then the node will sent to the |
162.Dv decompress | 162.Dv decompress |
163hook only those frames, that are marked with the COMPD tag. 164If 165.Vt enableDecompression 166is set to 167.Dv NG_PPP_DECOMPRESS_FULL , 168then the node will sent all incoming packets to the 169.Dv decompress 170hook. --- 220 unchanged lines hidden (view full) --- 391.It Dv NGM_PPP_GET_LINK_STATS 392This command takes a two byte link number as an argument and returns a 393.Dv "struct ng_ppp_link_stat" 394containing statistics for the corresponding link. 395Here 396.Dv NG_PPP_BUNDLE_LINKNUM 397is a valid link number corresponding to the multi-link bundle. 398.It Dv NGM_PPP_GET_LINK_STATS64 | 163hook only those frames, that are marked with the COMPD tag. 164If 165.Vt enableDecompression 166is set to 167.Dv NG_PPP_DECOMPRESS_FULL , 168then the node will sent all incoming packets to the 169.Dv decompress 170hook. --- 220 unchanged lines hidden (view full) --- 391.It Dv NGM_PPP_GET_LINK_STATS 392This command takes a two byte link number as an argument and returns a 393.Dv "struct ng_ppp_link_stat" 394containing statistics for the corresponding link. 395Here 396.Dv NG_PPP_BUNDLE_LINKNUM 397is a valid link number corresponding to the multi-link bundle. 398.It Dv NGM_PPP_GET_LINK_STATS64 |
399Same as NGM_PPP_GET_LINK_STATS but returns | 399Same as NGM_PPP_GET_LINK_STATS but returns |
400.Dv "struct ng_ppp_link_stat64" 401containing 64bit counters. 402.It Dv NGM_PPP_CLR_LINK_STATS 403This command takes a two byte link number as an argument and 404clears the statistics for that link. 405.It Dv NGM_PPP_GETCLR_LINK_STATS 406Same as 407.Dv NGM_PPP_GET_LINK_STATS , 408but also atomically clears the statistics as well. 409.It Dv NGM_PPP_GETCLR_LINK_STATS64 | 400.Dv "struct ng_ppp_link_stat64" 401containing 64bit counters. 402.It Dv NGM_PPP_CLR_LINK_STATS 403This command takes a two byte link number as an argument and 404clears the statistics for that link. 405.It Dv NGM_PPP_GETCLR_LINK_STATS 406Same as 407.Dv NGM_PPP_GET_LINK_STATS , 408but also atomically clears the statistics as well. 409.It Dv NGM_PPP_GETCLR_LINK_STATS64 |
410Same as NGM_PPP_GETCLR_LINK_STATS but returns | 410Same as NGM_PPP_GETCLR_LINK_STATS but returns |
411.Dv "struct ng_ppp_link_stat64" 412containing 64bit counters. 413.El 414.Pp 415This node type also accepts the control messages accepted by the 416.Xr ng_vjc 4 417node type. 418When received, these messages are simply forwarded to --- 42 unchanged lines hidden --- | 411.Dv "struct ng_ppp_link_stat64" 412containing 64bit counters. 413.El 414.Pp 415This node type also accepts the control messages accepted by the 416.Xr ng_vjc 4 417node type. 418When received, these messages are simply forwarded to --- 42 unchanged lines hidden --- |