Lines Matching refs:qopt
309 struct tc_netem_qopt qopt; in netem_print_opt() local
310 int len = RTA_PAYLOAD(opt) - sizeof(qopt); in netem_print_opt()
320 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); in netem_print_opt()
324 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), in netem_print_opt()
344 fprintf(f, "limit %d", qopt.limit); in netem_print_opt()
346 if (qopt.latency) { in netem_print_opt()
347 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1)); in netem_print_opt()
349 if (qopt.jitter) { in netem_print_opt()
350 fprintf(f, " %s", sprint_ticks(qopt.jitter, b1)); in netem_print_opt()
356 if (qopt.loss) { in netem_print_opt()
357 fprintf(f, " loss %s", sprint_percent(qopt.loss, b1)); in netem_print_opt()
362 if (qopt.duplicate) { in netem_print_opt()
364 sprint_percent(qopt.duplicate, b1)); in netem_print_opt()
385 if (qopt.gap) in netem_print_opt()
386 fprintf(f, " gap %lu", (unsigned long)qopt.gap); in netem_print_opt()