Main index | Section 4 | Options |
#include <sys/types.h>
#include <netgraph/ng_pptpgre.h>
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.
session_hhhh | |
Session 0xhhhh data packets to the upper protocol layers | |
upper | |
Same as session_hhhh, but for single session with configurable cid (legacy) | |
lower | |
Connection to the lower protocol layers | |
NGM_PPTPGRE_SET_CONFIG ( setconfig) | |
This command resets and configures hook for a session.
If corresponding
session_hhhh hook is not connected, upper hook will be configured.
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 include ack with data */ u_char enableWindowing; /* enable windowing algorithm */ uint16_t cid; /* my call id */ uint16_t peerCid; /* peer call id */ uint16_t recvWin; /* peer recv window size */ uint16_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. enableWindowing enables the PPTP packet windowing mechanism specified by the protocol. Disabling this will cause the node to violate the protocol, possibly confusing other PPTP peers, but often results in better performance. The windowing mechanism is a design error in the PPTP protocol; L2TP, the successor to PPTP, removes it. The remaining fields are as supplied by the PPTP virtual call setup process. | |
NGM_PPTPGRE_GET_CONFIG ( getconfig) | |
Takes two byte argument as cid and returns the current configuration as a struct ng_pptpgre_conf. | |
NGM_PPTPGRE_GET_STATS ( getstats) | |
This command returns a struct ng_pptpgre_stats containing various node statistics. | |
NGM_PPTPGRE_CLR_STATS ( clrstats) | |
This command resets the node statistics. | |
NGM_PPTPGRE_GETCLR_STATS ( getclrstats) | |
This command atomically gets and resets the node statistics, returning a struct ng_pptpgre_stats. | |
net.graph.pptpgre.reorder_max: 1 | |
Defines maximum length of node's private reorder queue used to keep data waiting for late packets. Zero value disables reordering. Default value allows the node to restore the order for two packets swapped in transit. Greater values allow the node to deliver packets being late after more packets in sequence at cost of increased kernel memory usage. | |
net.graph.pptpgre.reorder_timeout: 1 | |
Defines time value in miliseconds used to wait for late packets. | |
RFC 2637, Point-to-Point Tunneling Protocol (PPTP),
, , , , , ,RFC 1702, Generic Routing Encapsulation over IPv4 networks,
, , , ,NG_PPTPGRE (4) | November 4, 2018 |
Main index | Section 4 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | If you have an emergency I'm great at running around and flailing my arms | ” |
— Artur Bagyants |