35#ifndef _NETGRAPH_PIPE_H_
36#define _NETGRAPH_PIPE_H_
39#define NG_PIPE_NODE_TYPE "pipe"
40#define NGM_PIPE_COOKIE 200708191
43#define NG_PIPE_HOOK_UPPER "upper"
44#define NG_PIPE_HOOK_LOWER "lower"
46#define MAX_FSIZE 65536
60#define NG_PIPE_HOOKSTAT_INFO { \
61 { "FwdOctets", &ng_parse_uint64_type }, \
62 { "FwdFrames", &ng_parse_uint64_type }, \
63 { "queueDropOctets", &ng_parse_uint64_type }, \
64 { "queueDropFrames", &ng_parse_uint64_type }, \
65 { "delayDropOctets", &ng_parse_uint64_type }, \
66 { "delayDropFrames", &ng_parse_uint64_type }, \
77#define NG_PIPE_STATS_INFO(hstype) { \
78 { "downstream", (hstype) }, \
79 { "upstream", (hstype) }, \
93#define NG_PIPE_HOOKRUN_INFO { \
94 { "queues", &ng_parse_uint32_type }, \
95 { "queuedOctets", &ng_parse_uint32_type }, \
96 { "queuedFrames", &ng_parse_uint32_type }, \
97 { "delayedOctets", &ng_parse_uint32_type }, \
98 { "delayedFrames", &ng_parse_uint32_type }, \
109#define NG_PIPE_RUN_INFO(hstype) { \
110 { "downstream", (hstype) }, \
111 { "upstream", (hstype) }, \
130#define NG_PIPE_HOOKCFG_INFO { \
131 { "bandwidth", &ng_parse_uint64_type }, \
132 { "BER", &ng_parse_uint64_type }, \
133 { "queuelen", &ng_parse_uint32_type }, \
134 { "delaylen", &ng_parse_uint32_type }, \
135 { "duplicate", &ng_parse_uint32_type }, \
136 { "fifo", &ng_parse_uint32_type }, \
137 { "drr", &ng_parse_uint32_type }, \
138 { "wfq", &ng_parse_uint32_type }, \
139 { "droptail", &ng_parse_uint32_type }, \
140 { "drophead", &ng_parse_uint32_type }, \
155#define NG_PIPE_CFG_INFO(hstype) { \
156 { "bandwidth", &ng_parse_uint64_type }, \
157 { "delay", &ng_parse_uint64_type }, \
158 { "header_offset", &ng_parse_uint32_type }, \
159 { "overhead", &ng_parse_uint32_type }, \
160 { "downstream", (hstype) }, \
161 { "upstream", (hstype) }, \
struct ng_pipe_hookcfg upstream
struct ng_pipe_hookcfg downstream
u_int32_t qout_size_limit
u_int64_t out_disc_octets
u_int64_t out_disc_frames
struct ng_pipe_hookrun upstream
struct ng_pipe_hookrun downstream
struct ng_pipe_hookstat upstream
struct ng_pipe_hookstat downstream