Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_dummynet.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | struct dn_link { | ||||
struct dn_id oid; | struct dn_id oid; | ||||
/* | /* | ||||
* Userland sets bw and delay in bits/s and milliseconds. | * Userland sets bw and delay in bits/s and milliseconds. | ||||
* The kernel converts this back and forth to bits/tick and ticks. | * The kernel converts this back and forth to bits/tick and ticks. | ||||
* XXX what about burst ? | * XXX what about burst ? | ||||
*/ | */ | ||||
int32_t link_nr; | int32_t link_nr; | ||||
int bandwidth; /* bit/s or bits/tick. */ | uint32_t bandwidth; /* bit/s or bits/tick. */ | ||||
int delay; /* ms and ticks */ | int delay; /* ms and ticks */ | ||||
uint64_t burst; /* scaled. bits*Hz XXX */ | uint64_t burst; /* scaled. bits*Hz XXX */ | ||||
}; | }; | ||||
/* | /* | ||||
* A flowset, which is a template for flows. Contains parameters | * A flowset, which is a template for flows. Contains parameters | ||||
* from the command line: id, target scheduler, queue sizes, plr, | * from the command line: id, target scheduler, queue sizes, plr, | ||||
* flow masks, buckets for the flow hash, and possibly scheduler- | * flow masks, buckets for the flow hash, and possibly scheduler- | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
#define ED_MAX_SAMPLES_NO 1024 | #define ED_MAX_SAMPLES_NO 1024 | ||||
struct dn_profile { | struct dn_profile { | ||||
struct dn_id oid; | struct dn_id oid; | ||||
/* fields to simulate a delay profile */ | /* fields to simulate a delay profile */ | ||||
#define ED_MAX_NAME_LEN 32 | #define ED_MAX_NAME_LEN 32 | ||||
char name[ED_MAX_NAME_LEN]; | char name[ED_MAX_NAME_LEN]; | ||||
int link_nr; | int link_nr; | ||||
int loss_level; | int loss_level; | ||||
int bandwidth; // XXX use link bandwidth? | uint32_t bandwidth; // XXX use link bandwidth? | ||||
int samples_no; /* actual len of samples[] */ | int samples_no; /* actual len of samples[] */ | ||||
int samples[ED_MAX_SAMPLES_NO]; /* may be shorter */ | int samples[ED_MAX_SAMPLES_NO]; /* may be shorter */ | ||||
}; | }; | ||||
#ifdef NEW_AQM | #ifdef NEW_AQM | ||||
/* Extra parameters for AQM and scheduler. | /* Extra parameters for AQM and scheduler. | ||||
* This struct is used to pass and retrieve parameters (configurations) | * This struct is used to pass and retrieve parameters (configurations) | ||||
* to/from AQM and Scheduler. | * to/from AQM and Scheduler. | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |