Home
last modified time | relevance | path

Searched refs:SCALE_RED (Results 1 – 3 of 3) sorted by relevance

/freebsd-12-stable/sys/netinet/
Dip_dummynet.h164 #define SCALE_RED 16 macro
165 #define SCALE(x) ( (x) << SCALE_RED )
166 #define SCALE_VAL(x) ( (x) >> SCALE_RED )
167 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
/freebsd-12-stable/sys/netpfil/ipfw/
Dip_dn_glue.c112 #define SCALE_RED 16 macro
113 #define SCALE(x) ( (x) << SCALE_RED )
114 #define SCALE_VAL(x) ( (x) >> SCALE_RED )
115 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
/freebsd-12-stable/sbin/ipfw/
Ddummynet.c496 1.0 * fs->w_q / (double)(1 << SCALE_RED), in print_flowset_parms()
499 1.0 * fs->max_p / (double)(1 << SCALE_RED)); in print_flowset_parms()
1607 fs->w_q = (int) (w_q * (1 << SCALE_RED)); in ipfw_config_pipe()
1623 fs->max_p = (int)(max_p * (1 << SCALE_RED)); in ipfw_config_pipe()
1830 w_q = ((double)fs->w_q) / (1 << SCALE_RED); in ipfw_config_pipe()
1838 fs->lookup_weight = (int)(weight * (1 << SCALE_RED)); in ipfw_config_pipe()