ng_deflate.4 (166357) | ng_deflate.4 (233648) |
---|---|
1.\" 2.\" Author: Alexander Motin <mav@alkar.net> 3.\" 4.\" Copyright (c) 2006, Alexander Motin <mav@alkar.net> 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" SUCH DAMAGE. 28.\" | 1.\" 2.\" Author: Alexander Motin <mav@alkar.net> 3.\" 4.\" Copyright (c) 2006, Alexander Motin <mav@alkar.net> 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" SUCH DAMAGE. 28.\" |
29.\" $FreeBSD: head/share/man/man4/ng_deflate.4 166357 2007-01-30 20:22:07Z glebius $ | 29.\" $FreeBSD: head/share/man/man4/ng_deflate.4 233648 2012-03-29 05:02:12Z eadler $ |
30.\" 31.Dd December 23, 2006 32.Dt NG_DEFLATE 4 33.Os 34.Sh NAME 35.Nm ng_deflate 36.Nd Deflate PPP compression (RFC 1979) netgraph node type 37.Sh SYNOPSIS 38.In sys/types.h 39.In netgraph/ng_deflate.h 40.Sh DESCRIPTION 41The 42.Nm deflate | 30.\" 31.Dd December 23, 2006 32.Dt NG_DEFLATE 4 33.Os 34.Sh NAME 35.Nm ng_deflate 36.Nd Deflate PPP compression (RFC 1979) netgraph node type 37.Sh SYNOPSIS 38.In sys/types.h 39.In netgraph/ng_deflate.h 40.Sh DESCRIPTION 41The 42.Nm deflate |
43node type implements the Deflate sub-protocols of the Compression Control | 43node type implements the Deflate sub-protocols of the Compression Control |
44Protocol (CCP). 45.Pp 46The node has two hooks, 47.Va comp 48for compression and 49.Va decomp 50for decompression. 51Only one of them can be connected at the same time, specifying node's --- 54 unchanged lines hidden (view full) --- 106If an error is detected during decompression, this message is sent by the 107node to the originator of the 108.Dv NGM_DEFLATE_CONFIG 109message that initiated the session. 110The receiver should respond by sending a PPP CCP Reset-Request to the peer. 111.Pp 112This message may also be received by this node type when a CCP Reset-Request 113or Reset-Ack is received by the local PPP entity. | 44Protocol (CCP). 45.Pp 46The node has two hooks, 47.Va comp 48for compression and 49.Va decomp 50for decompression. 51Only one of them can be connected at the same time, specifying node's --- 54 unchanged lines hidden (view full) --- 106If an error is detected during decompression, this message is sent by the 107node to the originator of the 108.Dv NGM_DEFLATE_CONFIG 109message that initiated the session. 110The receiver should respond by sending a PPP CCP Reset-Request to the peer. 111.Pp 112This message may also be received by this node type when a CCP Reset-Request 113or Reset-Ack is received by the local PPP entity. |
114The node will respond by flushing its compression state so the sides | 114The node will respond by flushing its compression state so the sides |
115can resynchronize. 116.It Dv NGM_DEFLATE_GET_STATS Pq Li getstats 117This control message obtains statistics for a given hook. 118The statistics are returned in 119.Vt "struct ng_deflate_stats" : 120.Bd -literal 121struct ng_deflate_stats { 122 uint64_t FramesPlain; --- 26 unchanged lines hidden (view full) --- 149.%A W. Simpson 150.%T "The Point-to-Point Protocol (PPP)" 151.%O RFC 1661 152.Re 153.Sh AUTHORS 154.An Alexander Motin Aq mav@alkar.net 155.Sh BUGS 156Due to nature of netgraph PPP implementation there are possible race conditions | 115can resynchronize. 116.It Dv NGM_DEFLATE_GET_STATS Pq Li getstats 117This control message obtains statistics for a given hook. 118The statistics are returned in 119.Vt "struct ng_deflate_stats" : 120.Bd -literal 121struct ng_deflate_stats { 122 uint64_t FramesPlain; --- 26 unchanged lines hidden (view full) --- 149.%A W. Simpson 150.%T "The Point-to-Point Protocol (PPP)" 151.%O RFC 1661 152.Re 153.Sh AUTHORS 154.An Alexander Motin Aq mav@alkar.net 155.Sh BUGS 156Due to nature of netgraph PPP implementation there are possible race conditions |
157between data packet and ResetAck CCP packet in case of packet loss. As result, | 157between data packet and ResetAck CCP packet in case of packet loss. As result, |
158packet loss can produce bigger performance degradation than supposed by protocol. | 158packet loss can produce bigger performance degradation than supposed by protocol. |