32#ifndef _NETGRAPH_NG_CAR_H_
33#define _NETGRAPH_NG_CAR_H_
35#define NG_CAR_NODE_TYPE "car"
36#define NGM_CAR_COOKIE 1173648034
39#define NG_CAR_HOOK_UPPER "upper"
40#define NG_CAR_HOOK_LOWER "lower"
51#define NG_CAR_HOOKSTATS { \
52 { "passed", &ng_parse_uint64_type }, \
53 { "dropped", &ng_parse_uint64_type }, \
54 { "green", &ng_parse_uint64_type }, \
55 { "yellow", &ng_parse_uint64_type }, \
56 { "red", &ng_parse_uint64_type }, \
57 { "errors", &ng_parse_uint64_type }, \
66#define NG_CAR_BULKSTATS(hstatstype) { \
67 { "upstream", (hstatstype) }, \
68 { "downstream", (hstatstype) }, \
85#define NG_CAR_HOOKCONF { \
86 { "cbs", &ng_parse_uint64_type }, \
87 { "ebs", &ng_parse_uint64_type }, \
88 { "cir", &ng_parse_uint64_type }, \
89 { "pir", &ng_parse_uint64_type }, \
90 { "greenAction", &ng_parse_uint8_type }, \
91 { "yellowAction", &ng_parse_uint8_type }, \
92 { "redAction", &ng_parse_uint8_type }, \
93 { "mode", &ng_parse_uint8_type }, \
94 { "opt", &ng_parse_uint8_type }, \
98#define NG_CAR_CBS_MIN 8192
99#define NG_CAR_EBS_MIN 8192
100#define NG_CAR_CIR_DFLT 10240
118#define NG_CAR_COLOR_AWARE 1
119#define NG_CAR_COUNT_PACKETS 2
126#define NG_CAR_BULKCONF(hconftype) { \
127 { "upstream", (hconftype) }, \
128 { "downstream", (hconftype) }, \
struct ng_car_hookconf upstream
struct ng_car_hookconf downstream
struct ng_car_hookstats downstream
struct ng_car_hookstats upstream