FreeBSD kernel netgraph code
ng_car.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_car_hookstats
 
struct  ng_car_bulkstats
 
struct  ng_car_hookconf
 
struct  ng_car_bulkconf
 

Macros

#define NG_CAR_NODE_TYPE   "car"
 
#define NGM_CAR_COOKIE   1173648034
 
#define NG_CAR_HOOK_UPPER   "upper"
 
#define NG_CAR_HOOK_LOWER   "lower"
 
#define NG_CAR_HOOKSTATS
 
#define NG_CAR_BULKSTATS(hstatstype)
 
#define NG_CAR_HOOKCONF
 
#define NG_CAR_CBS_MIN   8192
 
#define NG_CAR_EBS_MIN   8192
 
#define NG_CAR_CIR_DFLT   10240
 
#define NG_CAR_COLOR_AWARE   1
 
#define NG_CAR_COUNT_PACKETS   2
 
#define NG_CAR_BULKCONF(hconftype)
 

Enumerations

enum  { NG_CAR_ACTION_FORWARD = 1 , NG_CAR_ACTION_DROP , NG_CAR_ACTION_MARK }
 
enum  { NG_CAR_SINGLE_RATE = 0 , NG_CAR_DOUBLE_RATE , NG_CAR_RED , NG_CAR_SHAPE }
 
enum  {
  NGM_CAR_GET_STATS = 1 , NGM_CAR_CLR_STATS , NGM_CAR_GETCLR_STATS , NGM_CAR_GET_CONF ,
  NGM_CAR_SET_CONF
}
 

Macro Definition Documentation

◆ NG_CAR_BULKCONF

#define NG_CAR_BULKCONF (   hconftype)
Value:
{ \
{ "upstream", (hconftype) }, \
{ "downstream", (hconftype) }, \
{ NULL } \
}

Definition at line 126 of file ng_car.h.

◆ NG_CAR_BULKSTATS

#define NG_CAR_BULKSTATS (   hstatstype)
Value:
{ \
{ "upstream", (hstatstype) }, \
{ "downstream", (hstatstype) }, \
{ NULL } \
}

Definition at line 66 of file ng_car.h.

◆ NG_CAR_CBS_MIN

#define NG_CAR_CBS_MIN   8192

Definition at line 98 of file ng_car.h.

◆ NG_CAR_CIR_DFLT

#define NG_CAR_CIR_DFLT   10240

Definition at line 100 of file ng_car.h.

◆ NG_CAR_COLOR_AWARE

#define NG_CAR_COLOR_AWARE   1

Definition at line 118 of file ng_car.h.

◆ NG_CAR_COUNT_PACKETS

#define NG_CAR_COUNT_PACKETS   2

Definition at line 119 of file ng_car.h.

◆ NG_CAR_EBS_MIN

#define NG_CAR_EBS_MIN   8192

Definition at line 99 of file ng_car.h.

◆ NG_CAR_HOOK_LOWER

#define NG_CAR_HOOK_LOWER   "lower"

Definition at line 40 of file ng_car.h.

◆ NG_CAR_HOOK_UPPER

#define NG_CAR_HOOK_UPPER   "upper"

Definition at line 39 of file ng_car.h.

◆ NG_CAR_HOOKCONF

#define NG_CAR_HOOKCONF
Value:
{ \
{ "cbs", &ng_parse_uint64_type }, \
{ "ebs", &ng_parse_uint64_type }, \
{ "cir", &ng_parse_uint64_type }, \
{ "pir", &ng_parse_uint64_type }, \
{ "greenAction", &ng_parse_uint8_type }, \
{ "yellowAction", &ng_parse_uint8_type }, \
{ "redAction", &ng_parse_uint8_type }, \
{ "mode", &ng_parse_uint8_type }, \
{ "opt", &ng_parse_uint8_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint64_type
Definition: ng_parse.c:703
const struct ng_parse_type ng_parse_uint8_type
Definition: ng_parse.c:413

Definition at line 85 of file ng_car.h.

◆ NG_CAR_HOOKSTATS

#define NG_CAR_HOOKSTATS
Value:
{ \
{ "passed", &ng_parse_uint64_type }, \
{ "dropped", &ng_parse_uint64_type }, \
{ "green", &ng_parse_uint64_type }, \
{ "yellow", &ng_parse_uint64_type }, \
{ "red", &ng_parse_uint64_type }, \
{ "errors", &ng_parse_uint64_type }, \
{ NULL } \
}

Definition at line 51 of file ng_car.h.

◆ NG_CAR_NODE_TYPE

#define NG_CAR_NODE_TYPE   "car"

Definition at line 35 of file ng_car.h.

◆ NGM_CAR_COOKIE

#define NGM_CAR_COOKIE   1173648034

Definition at line 36 of file ng_car.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NG_CAR_ACTION_FORWARD 
NG_CAR_ACTION_DROP 
NG_CAR_ACTION_MARK 

Definition at line 103 of file ng_car.h.

◆ anonymous enum

anonymous enum
Enumerator
NG_CAR_SINGLE_RATE 
NG_CAR_DOUBLE_RATE 
NG_CAR_RED 
NG_CAR_SHAPE 

Definition at line 110 of file ng_car.h.

◆ anonymous enum

anonymous enum
Enumerator
NGM_CAR_GET_STATS 
NGM_CAR_CLR_STATS 
NGM_CAR_GETCLR_STATS 
NGM_CAR_GET_CONF 
NGM_CAR_SET_CONF 

Definition at line 133 of file ng_car.h.