Lines Matching defs:ep

226 	struct dn_extra_parms *ep;
233 ep = safe_calloc(1, l);
234 memset(ep, 0, sizeof(*ep));
237 oid_fill(&ep->oid, l, DN_CMD_GET, DN_API_VERSION);
238 ep->oid.len = l;
239 ep->oid.subtype = subtype;
240 ep->nr = nr;
242 ret = do_cmd(-IP_DUMMYNET3, ep, (uintptr_t)&l);
244 free(ep);
250 if( !strcasecmp(ep->name, "codel")) {
251 us_to_time(ep->par[0], strt1);
252 us_to_time(ep->par[1], strt2);
255 if (ep->par[2] & CODEL_ECN_ENABLED)
259 } else if( !strcasecmp(ep->name, "pie")) {
260 us_to_time(ep->par[0], strt1);
261 us_to_time(ep->par[1], strt2);
262 us_to_time(ep->par[2], strt3);
267 ep->par[4] / (float) PIE_SCALE,
268 ep->par[5] / (float) PIE_SCALE,
270 ep->par[3] / (float) PIE_SCALE
273 if (ep->par[6] & PIE_ECN_ENABLED)
277 if (ep->par[6] & PIE_CAPDROP_ENABLED)
281 if (ep->par[6] & PIE_ON_OFF_MODE_ENABLED)
283 if (ep->par[6] & PIE_DEPRATEEST_ENABLED)
287 if (ep->par[6] & PIE_DERAND_ENABLED)
295 if (!strcasecmp(ep->name,"FQ_CODEL")) {
296 us_to_time(ep->par[0], strt1);
297 us_to_time(ep->par[1], strt2);
301 (intmax_t) ep->par[3],
302 (intmax_t) ep->par[4],
303 (intmax_t) ep->par[5]
305 if (ep->par[2] & CODEL_ECN_ENABLED)
310 } else if (!strcasecmp(ep->name,"FQ_PIE")) {
311 us_to_time(ep->par[0], strt1);
312 us_to_time(ep->par[1], strt2);
313 us_to_time(ep->par[2], strt3);
319 ep->par[4] / (float) PIE_SCALE,
320 ep->par[5] / (float) PIE_SCALE,
322 ep->par[3] / (float) PIE_SCALE,
323 (intmax_t) ep->par[7],
324 (intmax_t) ep->par[8],
325 (intmax_t) ep->par[9]
328 if (ep->par[6] & PIE_ECN_ENABLED)
332 if (ep->par[6] & PIE_CAPDROP_ENABLED)
336 if (ep->par[6] & PIE_ON_OFF_MODE_ENABLED)
338 if (ep->par[6] & PIE_DEPRATEEST_ENABLED)
342 if (ep->par[6] & PIE_DERAND_ENABLED)
351 free(ep);
1025 process_extra_parms(int *ac, char **av, struct dn_extra_parms *ep,
1032 ep->par[i] = -1;
1043 ep->par[2] = 0;
1045 ep->par[2] = CODEL_ECN_ENABLED;
1055 ep->par[0] = time_to_us(av[0]);
1063 ep->par[1] = time_to_us(av[0]);
1068 ep->par[2] = CODEL_ECN_ENABLED;
1071 ep->par[2] &= ~CODEL_ECN_ENABLED;
1080 ep->par[3]= atoi(av[0]);
1090 ep->par[4] = atoi(av[0]);
1100 ep->par[5] = atoi(av[0]);
1120 ep->par[6] = PIE_CAPDROP_ENABLED | PIE_DEPRATEEST_ENABLED
1124 ep->par[6] = PIE_CAPDROP_ENABLED | PIE_DERAND_ENABLED
1135 ep->par[0] = time_to_us(av[0]);
1143 ep->par[1] = time_to_us(av[0]);
1151 ep->par[2] = time_to_us(av[0]);
1159 ep->par[3] = atof(av[0]) * PIE_SCALE;
1167 ep->par[4] = atof(av[0]) * PIE_SCALE;
1175 ep->par[5] = atof(av[0]) * PIE_SCALE;
1180 ep->par[6] |= PIE_ECN_ENABLED;
1183 ep->par[6] &= ~PIE_ECN_ENABLED;
1187 ep->par[6] |= PIE_CAPDROP_ENABLED;
1190 ep->par[6] &= ~PIE_CAPDROP_ENABLED;
1194 ep->par[6] |= PIE_ON_OFF_MODE_ENABLED;
1198 ep->par[6] |= PIE_DEPRATEEST_ENABLED;
1202 ep->par[6] &= ~PIE_DEPRATEEST_ENABLED;
1206 ep->par[6] |= PIE_DERAND_ENABLED;
1209 ep->par[6] &= ~PIE_DERAND_ENABLED;
1219 ep->par[7]= atoi(av[0]);
1229 ep->par[8] = atoi(av[0]);
1239 ep->par[9] = atoi(av[0]);