42#ifndef _NETGRAPH_NG_L2TP_H_
43#define _NETGRAPH_NG_L2TP_H_
46#define NG_L2TP_NODE_TYPE "l2tp"
47#define NGM_L2TP_COOKIE 1091515793
50#define NG_L2TP_HOOK_CTRL "ctrl"
51#define NG_L2TP_HOOK_LOWER "lower"
54#define NG_L2TP_HOOK_SESSION_P "session_"
55#define NG_L2TP_HOOK_SESSION_F "session_%04x"
66#define NG_L2TP_SEQ_CONFIG_TYPE_INFO { \
67 { "ns", &ng_parse_uint16_type }, \
68 { "nr", &ng_parse_uint16_type }, \
84#define NG_L2TP_CONFIG_TYPE_INFO { \
85 { "enabled", &ng_parse_uint8_type }, \
86 { "match_id", &ng_parse_uint8_type }, \
87 { "tunnel_id", &ng_parse_hint16_type }, \
88 { "peer_id", &ng_parse_hint16_type }, \
89 { "peer_win", &ng_parse_uint16_type }, \
90 { "rexmit_max", &ng_parse_uint16_type }, \
91 { "rexmit_max_to", &ng_parse_uint16_type }, \
105#define NG_L2TP_SESS_CONFIG_TYPE_INFO { \
106 { "session_id", &ng_parse_hint16_type }, \
107 { "peer_id", &ng_parse_hint16_type }, \
108 { "control_dseq", &ng_parse_uint8_type }, \
109 { "enable_dseq", &ng_parse_uint8_type }, \
110 { "include_length", &ng_parse_uint8_type }, \
139#define NG_L2TP_STATS_TYPE_INFO { \
140 { "xmitPackets", &ng_parse_uint32_type }, \
141 { "xmitOctets", &ng_parse_uint32_type }, \
142 { "xmitZLBs", &ng_parse_uint32_type }, \
143 { "xmitDrops", &ng_parse_uint32_type }, \
144 { "xmitTooBig", &ng_parse_uint32_type }, \
145 { "xmitInvalid", &ng_parse_uint32_type }, \
146 { "xmitDataTooBig", &ng_parse_uint32_type }, \
147 { "xmitRetransmits", &ng_parse_uint32_type }, \
148 { "recvPackets", &ng_parse_uint32_type }, \
149 { "recvOctets", &ng_parse_uint32_type }, \
150 { "recvRunts", &ng_parse_uint32_type }, \
151 { "recvInvalid", &ng_parse_uint32_type }, \
152 { "recvWrongTunnel", &ng_parse_uint32_type }, \
153 { "recvUnknownSID", &ng_parse_uint32_type }, \
154 { "recvBadAcks", &ng_parse_uint32_type }, \
155 { "recvOutOfOrder", &ng_parse_uint32_type }, \
156 { "recvDuplicates", &ng_parse_uint32_type }, \
157 { "recvDataDrops", &ng_parse_uint32_type }, \
158 { "recvZLBs", &ng_parse_uint32_type }, \
159 { "memoryFailures", &ng_parse_uint32_type }, \
172#define NG_L2TP_SESSION_STATS_TYPE_INFO { \
173 { "xmitPackets", &ng_parse_uint64_type }, \
174 { "xmitOctets", &ng_parse_uint64_type }, \
175 { "recvPackets", &ng_parse_uint64_type }, \
176 { "recvOctets", &ng_parse_uint64_type }, \
@ NGM_L2TP_GETCLR_SESSION_STATS
@ NGM_L2TP_GET_SESSION_STATS
@ NGM_L2TP_SET_SESS_CONFIG
@ NGM_L2TP_CLR_SESSION_STATS
@ NGM_L2TP_GET_SESS_CONFIG
u_int32_t recvWrongTunnel
u_int32_t xmitRetransmits