44#ifndef _NETGRAPH_NG_ASYNC_H_
45#define _NETGRAPH_NG_ASYNC_H_
48#define NG_ASYNC_NODE_TYPE "async"
49#define NGM_ASYNC_COOKIE 886473717
52#define NG_ASYNC_HOOK_SYNC "sync"
53#define NG_ASYNC_HOOK_ASYNC "async"
56#define NG_ASYNC_MIN_MRU 1
57#define NG_ASYNC_MAX_MRU 8192
58#define NG_ASYNC_DEFAULT_MRU 1600
73#define NG_ASYNC_STATS_TYPE_INFO { \
74 { "syncOctets", &ng_parse_uint32_type }, \
75 { "syncFrames", &ng_parse_uint32_type }, \
76 { "syncOverflows", &ng_parse_uint32_type }, \
77 { "asyncOctets", &ng_parse_uint32_type }, \
78 { "asyncFrames", &ng_parse_uint32_type }, \
79 { "asyncRunts", &ng_parse_uint32_type }, \
80 { "asyncOverflows", &ng_parse_uint32_type }, \
81 { "asyncBadCheckSums",&ng_parse_uint32_type }, \
94#define NG_ASYNC_CONFIG_TYPE_INFO { \
95 { "enabled", &ng_parse_int8_type }, \
96 { "amru", &ng_parse_uint16_type }, \
97 { "smru", &ng_parse_uint16_type }, \
98 { "accm", &ng_parse_hint32_type }, \
@ NGM_ASYNC_CMD_GET_CONFIG
@ NGM_ASYNC_CMD_SET_CONFIG
@ NGM_ASYNC_CMD_CLR_STATS
@ NGM_ASYNC_CMD_GET_STATS
u_int32_t asyncBadCheckSums