ng_pred1.4 (165623) | ng_pred1.4 (233648) |
---|---|
1.\" 2.\" Copyright (c) 2006, Alexander Motin <mav@alkar.net> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" | 1.\" 2.\" Copyright (c) 2006, Alexander Motin <mav@alkar.net> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" |
27.\" $FreeBSD: head/share/man/man4/ng_pred1.4 165623 2006-12-29 10:47:26Z glebius $ | 27.\" $FreeBSD: head/share/man/man4/ng_pred1.4 233648 2012-03-29 05:02:12Z eadler $ |
28.\" 29.Dd December 24, 2006 30.Dt NG_PRED1 4 31.Os 32.Sh NAME 33.Nm ng_pred1 34.Nd Predictor-1 PPP compression (RFC 1978) netgraph node type 35.Sh SYNOPSIS 36.In sys/types.h 37.In netgraph/ng_pred1.h 38.Sh DESCRIPTION 39The 40.Nm pred1 | 28.\" 29.Dd December 24, 2006 30.Dt NG_PRED1 4 31.Os 32.Sh NAME 33.Nm ng_pred1 34.Nd Predictor-1 PPP compression (RFC 1978) netgraph node type 35.Sh SYNOPSIS 36.In sys/types.h 37.In netgraph/ng_pred1.h 38.Sh DESCRIPTION 39The 40.Nm pred1 |
41node type implements the Predictor-1 sub-protocols of the Compression Control | 41node type implements the Predictor-1 sub-protocols of the Compression Control |
42Protocol (CCP). 43.Pp 44The node has two hooks, 45.Va comp 46for compression and 47.Va decomp 48for decompression. 49Only one of them can be connected at the same time, specifying node's --- 43 unchanged lines hidden (view full) --- 93If an error is detected during decompression, this message is sent by the 94node to the originator of the 95.Dv NGM_PRED1_CONFIG 96message that initiated the session. 97The receiver should respond by sending a PPP CCP Reset-Request to the peer. 98.Pp 99This message may also be received by this node type when a CCP Reset-Request 100or Reset-Ack is received by the local PPP entity. | 42Protocol (CCP). 43.Pp 44The node has two hooks, 45.Va comp 46for compression and 47.Va decomp 48for decompression. 49Only one of them can be connected at the same time, specifying node's --- 43 unchanged lines hidden (view full) --- 93If an error is detected during decompression, this message is sent by the 94node to the originator of the 95.Dv NGM_PRED1_CONFIG 96message that initiated the session. 97The receiver should respond by sending a PPP CCP Reset-Request to the peer. 98.Pp 99This message may also be received by this node type when a CCP Reset-Request 100or Reset-Ack is received by the local PPP entity. |
101The node will respond by flushing its compression state so the sides | 101The node will respond by flushing its compression state so the sides |
102can resynchronize. 103.It Dv NGM_PRED1_GET_STATS Pq Li getstats 104This control message obtains statistics for a given hook. 105The statistics are returned in 106.Vt "struct ng_pred1_stats" : 107.Bd -literal 108struct ng_pred1_stats { 109 uint64_t FramesPlain; --- 26 unchanged lines hidden (view full) --- 136.%A W. Simpson 137.%T "The Point-to-Point Protocol (PPP)" 138.%O RFC 1661 139.Re 140.Sh AUTHORS 141.An Alexander Motin Aq mav@alkar.net 142.Sh BUGS 143Due to nature of netgraph PPP implementation there are possible race conditions | 102can resynchronize. 103.It Dv NGM_PRED1_GET_STATS Pq Li getstats 104This control message obtains statistics for a given hook. 105The statistics are returned in 106.Vt "struct ng_pred1_stats" : 107.Bd -literal 108struct ng_pred1_stats { 109 uint64_t FramesPlain; --- 26 unchanged lines hidden (view full) --- 136.%A W. Simpson 137.%T "The Point-to-Point Protocol (PPP)" 138.%O RFC 1661 139.Re 140.Sh AUTHORS 141.An Alexander Motin Aq mav@alkar.net 142.Sh BUGS 143Due to nature of netgraph PPP implementation there are possible race conditions |
144between data packet and ResetAck CCP packet in case of packet loss. As result, | 144between data packet and ResetAck CCP packet in case of packet loss. As result, |
145packet loss can produce bigger performance degradation than supposed by protocol. | 145packet loss can produce bigger performance degradation than supposed by protocol. |