FreeBSD kernel netgraph code
ng_l2tp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ng_l2tp_seq_config
 
struct  ng_l2tp_config
 
struct  ng_l2tp_sess_config
 
struct  ng_l2tp_stats
 
struct  ng_l2tp_session_stats
 

Macros

#define NG_L2TP_NODE_TYPE   "l2tp"
 
#define NGM_L2TP_COOKIE   1091515793
 
#define NG_L2TP_HOOK_CTRL   "ctrl" /* control channel hook */
 
#define NG_L2TP_HOOK_LOWER   "lower" /* hook to lower layers */
 
#define NG_L2TP_HOOK_SESSION_P   "session_" /* session data hook (prefix) */
 
#define NG_L2TP_HOOK_SESSION_F   "session_%04x" /* session data hook (format) */
 
#define NG_L2TP_SEQ_CONFIG_TYPE_INFO
 
#define NG_L2TP_CONFIG_TYPE_INFO
 
#define NG_L2TP_SESS_CONFIG_TYPE_INFO
 
#define NG_L2TP_STATS_TYPE_INFO
 
#define NG_L2TP_SESSION_STATS_TYPE_INFO
 

Enumerations

enum  {
  NGM_L2TP_SET_CONFIG = 1 , NGM_L2TP_GET_CONFIG , NGM_L2TP_SET_SESS_CONFIG , NGM_L2TP_GET_SESS_CONFIG ,
  NGM_L2TP_GET_STATS , NGM_L2TP_CLR_STATS , NGM_L2TP_GETCLR_STATS , NGM_L2TP_GET_SESSION_STATS ,
  NGM_L2TP_CLR_SESSION_STATS , NGM_L2TP_GETCLR_SESSION_STATS , NGM_L2TP_ACK_FAILURE , NGM_L2TP_SET_SEQ
}
 

Macro Definition Documentation

◆ NG_L2TP_CONFIG_TYPE_INFO

#define NG_L2TP_CONFIG_TYPE_INFO
Value:
{ \
{ "enabled", &ng_parse_uint8_type }, \
{ "match_id", &ng_parse_uint8_type }, \
{ "tunnel_id", &ng_parse_hint16_type }, \
{ "peer_id", &ng_parse_hint16_type }, \
{ "peer_win", &ng_parse_uint16_type }, \
{ "rexmit_max", &ng_parse_uint16_type }, \
{ "rexmit_max_to", &ng_parse_uint16_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint16_type
Definition: ng_parse.c:509
const struct ng_parse_type ng_parse_uint8_type
Definition: ng_parse.c:413
const struct ng_parse_type ng_parse_hint16_type
Definition: ng_parse.c:514

Definition at line 84 of file ng_l2tp.h.

◆ NG_L2TP_HOOK_CTRL

#define NG_L2TP_HOOK_CTRL   "ctrl" /* control channel hook */

Definition at line 50 of file ng_l2tp.h.

◆ NG_L2TP_HOOK_LOWER

#define NG_L2TP_HOOK_LOWER   "lower" /* hook to lower layers */

Definition at line 51 of file ng_l2tp.h.

◆ NG_L2TP_HOOK_SESSION_F

#define NG_L2TP_HOOK_SESSION_F   "session_%04x" /* session data hook (format) */

Definition at line 55 of file ng_l2tp.h.

◆ NG_L2TP_HOOK_SESSION_P

#define NG_L2TP_HOOK_SESSION_P   "session_" /* session data hook (prefix) */

Definition at line 54 of file ng_l2tp.h.

◆ NG_L2TP_NODE_TYPE

#define NG_L2TP_NODE_TYPE   "l2tp"

Definition at line 46 of file ng_l2tp.h.

◆ NG_L2TP_SEQ_CONFIG_TYPE_INFO

#define NG_L2TP_SEQ_CONFIG_TYPE_INFO
Value:
{ \
{ "ns", &ng_parse_uint16_type }, \
{ "nr", &ng_parse_uint16_type }, \
{ NULL } \
}

Definition at line 66 of file ng_l2tp.h.

◆ NG_L2TP_SESS_CONFIG_TYPE_INFO

#define NG_L2TP_SESS_CONFIG_TYPE_INFO
Value:
{ \
{ "session_id", &ng_parse_hint16_type }, \
{ "peer_id", &ng_parse_hint16_type }, \
{ "control_dseq", &ng_parse_uint8_type }, \
{ "enable_dseq", &ng_parse_uint8_type }, \
{ "include_length", &ng_parse_uint8_type }, \
{ NULL } \
}

Definition at line 105 of file ng_l2tp.h.

◆ NG_L2TP_SESSION_STATS_TYPE_INFO

#define NG_L2TP_SESSION_STATS_TYPE_INFO
Value:
{ \
{ "xmitPackets", &ng_parse_uint64_type }, \
{ "xmitOctets", &ng_parse_uint64_type }, \
{ "recvPackets", &ng_parse_uint64_type }, \
{ "recvOctets", &ng_parse_uint64_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint64_type
Definition: ng_parse.c:703

Definition at line 172 of file ng_l2tp.h.

◆ NG_L2TP_STATS_TYPE_INFO

#define NG_L2TP_STATS_TYPE_INFO
Value:
{ \
{ "xmitPackets", &ng_parse_uint32_type }, \
{ "xmitOctets", &ng_parse_uint32_type }, \
{ "xmitZLBs", &ng_parse_uint32_type }, \
{ "xmitDrops", &ng_parse_uint32_type }, \
{ "xmitTooBig", &ng_parse_uint32_type }, \
{ "xmitInvalid", &ng_parse_uint32_type }, \
{ "xmitDataTooBig", &ng_parse_uint32_type }, \
{ "xmitRetransmits", &ng_parse_uint32_type }, \
{ "recvPackets", &ng_parse_uint32_type }, \
{ "recvOctets", &ng_parse_uint32_type }, \
{ "recvRunts", &ng_parse_uint32_type }, \
{ "recvInvalid", &ng_parse_uint32_type }, \
{ "recvWrongTunnel", &ng_parse_uint32_type }, \
{ "recvUnknownSID", &ng_parse_uint32_type }, \
{ "recvBadAcks", &ng_parse_uint32_type }, \
{ "recvOutOfOrder", &ng_parse_uint32_type }, \
{ "recvDuplicates", &ng_parse_uint32_type }, \
{ "recvDataDrops", &ng_parse_uint32_type }, \
{ "recvZLBs", &ng_parse_uint32_type }, \
{ "memoryFailures", &ng_parse_uint32_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608

Definition at line 139 of file ng_l2tp.h.

◆ NGM_L2TP_COOKIE

#define NGM_L2TP_COOKIE   1091515793

Definition at line 47 of file ng_l2tp.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_L2TP_SET_CONFIG 
NGM_L2TP_GET_CONFIG 
NGM_L2TP_SET_SESS_CONFIG 
NGM_L2TP_GET_SESS_CONFIG 
NGM_L2TP_GET_STATS 
NGM_L2TP_CLR_STATS 
NGM_L2TP_GETCLR_STATS 
NGM_L2TP_GET_SESSION_STATS 
NGM_L2TP_CLR_SESSION_STATS 
NGM_L2TP_GETCLR_SESSION_STATS 
NGM_L2TP_ACK_FAILURE 
NGM_L2TP_SET_SEQ 

Definition at line 181 of file ng_l2tp.h.