*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> ng_pptpgre (4)              
Title
Content
Arch
Section
 

NG_PPTPGRE(4)

Contents


NAME    [Toc]    [Back]

     ng_pptpgre -- PPTP GRE protocol netgraph node type

SYNOPSIS    [Toc]    [Back]

     #include <netgraph/ng_pptpgre.h>

DESCRIPTION    [Toc]    [Back]

     The pptpgre node type performs Generic Routing Encapsulation (GRE) over
     IP for the PPTP protocol as specified by RFC 2637.  This involves packet
     encapsulation, sequencing, acknowledgement, and an adaptive timeout sliding
 window mechanism.  This node type does not handle any of the TCP control
 protocol or call negotiation defined by PPTP.

     This node type expects to receive complete IP packets, including the IP
     header, on the ``lower'' hook, but it transmits outgoing frames without
     any IP header.  The typical use for this node type would be to connect
     the ``upper'' hook to one of the link hooks of a ng_ppp(4) node, and the
     ``lower'' hook to the ``inet/raw/gre'' hook of a ng_ksocket(4) node.

HOOKS    [Toc]    [Back]

     This node type supports the following hooks:

     upper  Connection to the upper protocol layers
     lower  Connection to the lower protocol layers

CONTROL MESSAGES    [Toc]    [Back]

     This node type supports the generic control messages, plus the following:

     NGM_PPTPGRE_SET_CONFIG
	     This command resets and configures the node for a session.  This
	     command takes a struct ng_pptpgre_conf as an argument:

	     /* Configuration for a session */
	     struct ng_pptpgre_conf {
		 u_char      enabled;	       /* enables traffic flow */
		 u_char      enableDelayedAck; /* enables delayed acks */
		 u_char      enableAlwaysAck;  /* always send ack with data */
		 u_int16_t   cid;	       /* my call id */
		 u_int16_t   peerCid;	       /* peer call id */
		 u_int16_t   recvWin;	       /* peer recv window size */
		 u_int16_t   peerPpd;	       /* peer packet processing delay
						  (in 1/10 of a second) */
	     };

	     The enabled field enables traffic flow through the node.  The
	     enableDelayedAck field enables delayed acknowledgement (maximum
	     250 milliseconds), which is a useful optimization and should generally
 be turned on.  enableAlwaysAck field enables sending
	     acknowledgements with every data packet, which is probably helpful
 as well.  The remaining fields are as supplied by the PPTP
	     virtual call setup process.

     NGM_PPTPGRE_GET_CONFIG
	     Returns the current configuration as a struct ng_pptpgre_conf.

     NGM_PPTPGRE_GET_STATS
	     This command returns a struct ng_pptpgre_stats containing various
	     node statistics.

     NGM_PPTPGRE_CLR_STATS
	     This command resets the node statistics.

     NGM_PPTPGRE_GETCLR_STATS
	     This command atomically gets and resets the node statistics,
	     returning a struct ng_pptpgre_stats.

SHUTDOWN    [Toc]    [Back]

     This node shuts down upon receipt of a NGM_SHUTDOWN control message, or
     when both hooks have been disconnected.

SEE ALSO    [Toc]    [Back]

      
      
     netgraph(4), ng_ksocket(4), ng_ppp(4), ngctl(8)

     K. Hamzeh, G. Pall, W. Verthein, J. Taarud, W. Little, and G. Zorn,
     Point-to-Point Tunneling Protocol (PPTP), RFC 2637.

     S. Hanks, T. Li, D. Farinacci, and P. Traina, Generic Routing
     Encapsulation over IPv4 networks, RFC 1702.

BUGS    [Toc]    [Back]

     The node should not expect incoming GRE packets to have an IP header.
     This behavior is inherited from the (converse) behavior of raw IP sockets.
  An intermediate node that strips IP headers in one direction should
     be used instead.

HISTORY    [Toc]    [Back]

     The ng_pptpgre node type was implemented in FreeBSD 4.0.

AUTHORS    [Toc]    [Back]

     Archie Cobbs <[email protected]>


FreeBSD 5.2.1		       December 7, 2001 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
ng_ppp FreeBSD PPP protocol netgraph node type
ng_l2tp FreeBSD L2TP protocol netgraph node type
ng_pppoe FreeBSD RFC 2516 PPPOE protocol netgraph node type
ng_lmi FreeBSD frame relay LMI protocol netgraph node type
ng_cisco FreeBSD Cisco HDLC protocol netgraph node type
ng_l2cap FreeBSD Netgraph node type that implements Bluetooth Logical Link Control and Adaptation Protocol (L2CAP)
ng_uni FreeBSD netgraph UNI node type
ng_UI FreeBSD UI netgraph node type
ng_atm FreeBSD netgraph ATM node type
ng_iface FreeBSD interface netgraph node type
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service