Home
last modified time | relevance | path

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

/freebsd/sys/netinet/
H A Dip_dummynet.h162 #define SCALE_RED 16 macro
163 #define SCALE(x) ( (x) << SCALE_RED )
164 #define SCALE_VAL(x) ( (x) >> SCALE_RED )
165 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
/freebsd/sys/netpfil/ipfw/
H A Dip_dn_glue.c111 #define SCALE_RED 16 macro
112 #define SCALE(x) ( (x) << SCALE_RED )
113 #define SCALE_VAL(x) ( (x) >> SCALE_RED )
114 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
/freebsd/sbin/ipfw/
H A Ddummynet.c502 1.0 * fs->w_q / (double)(1 << SCALE_RED), in print_flowset_parms()
505 1.0 * fs->max_p / (double)(1 << SCALE_RED)); in print_flowset_parms()
1627 fs->w_q = (int) (w_q * (1 << SCALE_RED)); in ipfw_config_pipe()
1643 fs->max_p = (int)(max_p * (1 << SCALE_RED)); in ipfw_config_pipe()
1850 w_q = ((double)fs->w_q) / (1 << SCALE_RED); in ipfw_config_pipe()
1858 fs->lookup_weight = (int)(weight * (1 << SCALE_RED)); in ipfw_config_pipe()