FreeBSD kernel netgraph code
ng_pipe.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_pipe_hookstat
 
struct  ng_pipe_stats
 
struct  ng_pipe_hookrun
 
struct  ng_pipe_run
 
struct  ng_pipe_hookcfg
 
struct  ng_pipe_cfg
 

Macros

#define NG_PIPE_NODE_TYPE   "pipe"
 
#define NGM_PIPE_COOKIE   200708191
 
#define NG_PIPE_HOOK_UPPER   "upper"
 
#define NG_PIPE_HOOK_LOWER   "lower"
 
#define MAX_FSIZE   65536 /* Largest supported frame size, in bytes, for BER */
 
#define MAX_OHSIZE   256 /* Largest supported dummy-framing size, in bytes */
 
#define NG_PIPE_HOOKSTAT_INFO
 
#define NG_PIPE_STATS_INFO(hstype)
 
#define NG_PIPE_HOOKRUN_INFO
 
#define NG_PIPE_RUN_INFO(hstype)
 
#define NG_PIPE_HOOKCFG_INFO
 
#define NG_PIPE_CFG_INFO(hstype)
 

Enumerations

enum  {
  NGM_PIPE_GET_STATS =1 , NGM_PIPE_CLR_STATS , NGM_PIPE_GETCLR_STATS , NGM_PIPE_GET_RUN ,
  NGM_PIPE_GET_CFG , NGM_PIPE_SET_CFG
}
 

Macro Definition Documentation

◆ MAX_FSIZE

#define MAX_FSIZE   65536 /* Largest supported frame size, in bytes, for BER */

Definition at line 46 of file ng_pipe.h.

◆ MAX_OHSIZE

#define MAX_OHSIZE   256 /* Largest supported dummy-framing size, in bytes */

Definition at line 47 of file ng_pipe.h.

◆ NG_PIPE_CFG_INFO

#define NG_PIPE_CFG_INFO (   hstype)
Value:
{ \
{ "bandwidth", &ng_parse_uint64_type }, \
{ "delay", &ng_parse_uint64_type }, \
{ "header_offset", &ng_parse_uint32_type }, \
{ "overhead", &ng_parse_uint32_type }, \
{ "downstream", (hstype) }, \
{ "upstream", (hstype) }, \
{ NULL }, \
}
const struct ng_parse_type ng_parse_uint64_type
Definition: ng_parse.c:703
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608

Definition at line 155 of file ng_pipe.h.

◆ NG_PIPE_HOOK_LOWER

#define NG_PIPE_HOOK_LOWER   "lower"

Definition at line 44 of file ng_pipe.h.

◆ NG_PIPE_HOOK_UPPER

#define NG_PIPE_HOOK_UPPER   "upper"

Definition at line 43 of file ng_pipe.h.

◆ NG_PIPE_HOOKCFG_INFO

#define NG_PIPE_HOOKCFG_INFO
Value:
{ \
{ "bandwidth", &ng_parse_uint64_type }, \
{ "BER", &ng_parse_uint64_type }, \
{ "queuelen", &ng_parse_uint32_type }, \
{ "delaylen", &ng_parse_uint32_type }, \
{ "duplicate", &ng_parse_uint32_type }, \
{ "fifo", &ng_parse_uint32_type }, \
{ "drr", &ng_parse_uint32_type }, \
{ "wfq", &ng_parse_uint32_type }, \
{ "droptail", &ng_parse_uint32_type }, \
{ "drophead", &ng_parse_uint32_type }, \
{ NULL }, \
}

Definition at line 130 of file ng_pipe.h.

◆ NG_PIPE_HOOKRUN_INFO

#define NG_PIPE_HOOKRUN_INFO
Value:
{ \
{ "queues", &ng_parse_uint32_type }, \
{ "queuedOctets", &ng_parse_uint32_type }, \
{ "queuedFrames", &ng_parse_uint32_type }, \
{ "delayedOctets", &ng_parse_uint32_type }, \
{ "delayedFrames", &ng_parse_uint32_type }, \
{ NULL }, \
}

Definition at line 93 of file ng_pipe.h.

◆ NG_PIPE_HOOKSTAT_INFO

#define NG_PIPE_HOOKSTAT_INFO
Value:
{ \
{ "FwdOctets", &ng_parse_uint64_type }, \
{ "FwdFrames", &ng_parse_uint64_type }, \
{ "queueDropOctets", &ng_parse_uint64_type }, \
{ "queueDropFrames", &ng_parse_uint64_type }, \
{ "delayDropOctets", &ng_parse_uint64_type }, \
{ "delayDropFrames", &ng_parse_uint64_type }, \
{ NULL }, \
}

Definition at line 60 of file ng_pipe.h.

◆ NG_PIPE_NODE_TYPE

#define NG_PIPE_NODE_TYPE   "pipe"

Definition at line 39 of file ng_pipe.h.

◆ NG_PIPE_RUN_INFO

#define NG_PIPE_RUN_INFO (   hstype)
Value:
{ \
{ "downstream", (hstype) }, \
{ "upstream", (hstype) }, \
{ NULL }, \
}

Definition at line 109 of file ng_pipe.h.

◆ NG_PIPE_STATS_INFO

#define NG_PIPE_STATS_INFO (   hstype)
Value:
{ \
{ "downstream", (hstype) }, \
{ "upstream", (hstype) }, \
{ NULL }, \
}

Definition at line 77 of file ng_pipe.h.

◆ NGM_PIPE_COOKIE

#define NGM_PIPE_COOKIE   200708191

Definition at line 40 of file ng_pipe.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_PIPE_GET_STATS 
NGM_PIPE_CLR_STATS 
NGM_PIPE_GETCLR_STATS 
NGM_PIPE_GET_RUN 
NGM_PIPE_GET_CFG 
NGM_PIPE_SET_CFG 

Definition at line 166 of file ng_pipe.h.