1 .\" Copyright (c) 1996-1999 Whistle Communications, Inc.
2 .\" All rights reserved.
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
9 .\" copyright notice above and the following disclaimer of warranties; and
10 .\" 2. No rights are granted, in any manner or form, to use Whistle
11 .\" Communications, Inc. trademarks, including the mark "WHISTLE
12 .\" COMMUNICATIONS" on advertising, endorsements, or otherwise except as
13 .\" such appears in the above copyright notice or in the software.
15 .\" THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND
16 .\" TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO
17 .\" REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,
18 .\" INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF
19 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
20 .\" WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY
21 .\" REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS
22 .\" SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.
23 .\" IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES
24 .\" RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING
25 .\" WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26 .\" PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
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
33 .\" Author: Archie Cobbs <archie@FreeBSD.org>
35 .\" $FreeBSD: src/share/man/man4/ng_pptpgre.4,v 1.16.2.2 2002/03/19 18:24:07 schweikh Exp $
36 .\" $DragonFly: src/share/man/man4/ng_pptpgre.4,v 1.5 2007/05/17 08:19:01 swildner Exp $
37 .\" $Whistle: ng_pptpgre.8,v 1.2 1999/12/08 00:20:53 archie Exp $
44 .Nd PPTP GRE protocol netgraph node type
46 .In netgraph/pptpgre/ng_pptpgre.h
50 node type performs Generic Routing Encapsulation (GRE) over IP
51 for the PPTP protocol as specified by RFC 2637.
53 encapsulation, sequencing, acknowledgement, and an adaptive timeout
54 sliding window mechanism.
55 This node type does not handle any of
56 the TCP control protocol or call negotiation defined by PPTP.
58 This node type expects to receive complete IP packets,
59 including the IP header, on the
61 hook, but it transmits outgoing frames without any IP header.
62 The typical use for this node type would be to connect the
64 hook to one of the link hooks of a
74 This node type supports the following hooks:
76 .Bl -tag -compact -width ".Li upper"
78 Connection to the upper protocol layers
80 Connection to the lower protocol layers
83 This node type supports the generic control messages, plus the following:
84 .Bl -tag -width indent
85 .It Dv NGM_PPTPGRE_SET_CONFIG
86 This command resets and configures the node for a session.
88 .Vt "struct ng_pptpgre_conf"
91 /* Configuration for a session */
92 struct ng_pptpgre_conf {
93 u_char enabled; /* enables traffic flow */
94 u_char enableDelayedAck; /* enables delayed acks */
95 u_char enableAlwaysAck; /* always send ack with data */
96 u_int16_t cid; /* my call id */
97 u_int16_t peerCid; /* peer call id */
98 u_int16_t recvWin; /* peer recv window size */
99 u_int16_t peerPpd; /* peer packet processing delay
100 (in 1/10 of a second) */
106 field enables traffic flow through the node.
109 field enables delayed acknowledgement (maximum 250 milliseconds), which
110 is a useful optimization and should generally be turned on.
112 field enables sending acknowledgements with every data packet, which
113 is probably helpful as well.
114 The remaining fields are as supplied by the PPTP virtual call setup process.
115 .It Dv NGM_PPTPGRE_GET_CONFIG
116 Returns the current configuration as a
117 .Vt "struct ng_pptpgre_conf" .
118 .It Dv NGM_PPTPGRE_GET_STATS
119 This command returns a
120 .Vt "struct ng_pptpgre_stats"
121 containing various node statistics.
122 .It Dv NGM_PPTPGRE_CLR_STATS
123 This command resets the node statistics.
124 .It Dv NGM_PPTPGRE_GETCLR_STATS
125 This command atomically gets and resets the node statistics, returning a
126 .Vt "struct ng_pptpgre_stats" .
129 This node shuts down upon receipt of a
131 control message, or when both hooks have been disconnected.
144 .%T "Point-to-Point Tunneling Protocol (PPTP)"
152 .%T "Generic Routing Encapsulation over IPv4 networks"
158 node type was implemented in
161 .An Archie Cobbs Aq archie@FreeBSD.org
163 The node should not expect incoming GRE packets to have an IP header.
164 This behavior is inherited from the (converse) behavior of raw IP sockets.
165 An intermediate node that strips IP headers in one direction
166 should be used instead.