44#ifndef _NETGRAPH_NG_PPTPGRE_H_
45#define _NETGRAPH_NG_PPTPGRE_H_
48#define NG_PPTPGRE_NODE_TYPE "pptpgre"
49#define NGM_PPTPGRE_COOKIE 1082548365
52#define NG_PPTPGRE_HOOK_UPPER "upper"
53#define NG_PPTPGRE_HOOK_LOWER "lower"
56#define NG_PPTPGRE_HOOK_SESSION_P "session_"
57#define NG_PPTPGRE_HOOK_SESSION_F "session_%04x"
73#define NG_PPTPGRE_CONF_TYPE_INFO { \
74 { "enabled", &ng_parse_uint8_type }, \
75 { "enableDelayedAck", &ng_parse_uint8_type }, \
76 { "enableAlwaysAck", &ng_parse_uint8_type }, \
77 { "enableWindowing", &ng_parse_uint8_type }, \
78 { "cid", &ng_parse_hint16_type }, \
79 { "peerCid", &ng_parse_hint16_type }, \
80 { "recvWin", &ng_parse_uint16_type }, \
81 { "peerPpd", &ng_parse_uint16_type }, \
110#define NG_PPTPGRE_STATS_TYPE_INFO { \
111 { "xmitPackets", &ng_parse_uint32_type }, \
112 { "xmitOctets", &ng_parse_uint32_type }, \
113 { "xmitLoneAcks", &ng_parse_uint32_type }, \
114 { "xmitDrops", &ng_parse_uint32_type }, \
115 { "xmitTooBig", &ng_parse_uint32_type }, \
116 { "recvPackets", &ng_parse_uint32_type }, \
117 { "recvOctets", &ng_parse_uint32_type }, \
118 { "recvRunts", &ng_parse_uint32_type }, \
119 { "recvBadGRE", &ng_parse_uint32_type }, \
120 { "recvBadAcks", &ng_parse_uint32_type }, \
121 { "recvBadCID", &ng_parse_uint32_type }, \
122 { "recvOutOfOrder", &ng_parse_uint32_type }, \
123 { "recvDuplicates", &ng_parse_uint32_type }, \
124 { "recvLoneAcks", &ng_parse_uint32_type }, \
125 { "recvAckTimeouts", &ng_parse_uint32_type }, \
126 { "memoryFailures", &ng_parse_uint32_type }, \
127 { "recvReorderOverflow", &ng_parse_uint32_type}, \
128 { "recvReorderTimeouts", &ng_parse_uint32_type}, \
@ NGM_PPTPGRE_GETCLR_STATS
u_int32_t recvAckTimeouts
u_int32_t recvReorderOverflow
u_int32_t recvReorderTimeouts