Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/ng_car.h
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
#define NG_CAR_CBS_MIN 8192 | #define NG_CAR_CBS_MIN 8192 | ||||
#define NG_CAR_EBS_MIN 8192 | #define NG_CAR_EBS_MIN 8192 | ||||
#define NG_CAR_CIR_DFLT 10240 | #define NG_CAR_CIR_DFLT 10240 | ||||
/* possible actions (...Action) */ | /* possible actions (...Action) */ | ||||
enum { | enum { | ||||
NG_CAR_ACTION_FORWARD = 1, | NG_CAR_ACTION_FORWARD = 1, | ||||
NG_CAR_ACTION_DROP, | NG_CAR_ACTION_DROP, | ||||
NG_CAR_ACTION_MARK, | NG_CAR_ACTION_MARK | ||||
NG_CAR_ACTION_SET_TOS | |||||
}; | }; | ||||
/* operation modes (mode) */ | /* operation modes (mode) */ | ||||
enum { | enum { | ||||
NG_CAR_SINGLE_RATE = 0, | NG_CAR_SINGLE_RATE = 0, | ||||
NG_CAR_DOUBLE_RATE, | NG_CAR_DOUBLE_RATE, | ||||
NG_CAR_RED, | NG_CAR_RED, | ||||
NG_CAR_SHAPE | NG_CAR_SHAPE | ||||
}; | }; | ||||
/* mode options (opt) */ | /* mode options (bits in opt) */ | ||||
#define NG_CAR_COLOR_AWARE 1 | #define NG_CAR_COLOR_AWARE 1 | ||||
#define NG_CAR_COUNT_PACKETS 2 | #define NG_CAR_COUNT_PACKETS 2 | ||||
/* Bulk config */ | /* Bulk config */ | ||||
struct ng_car_bulkconf { | struct ng_car_bulkconf { | ||||
struct ng_car_hookconf upstream; | struct ng_car_hookconf upstream; | ||||
struct ng_car_hookconf downstream; | struct ng_car_hookconf downstream; | ||||
}; | }; | ||||
Show All 16 Lines |