Lines Matching refs:opt
173 struct tc_netem_qopt opt = { .limit = 1000 };
193 if (get_size(&opt.limit, *argv)) {
200 if (get_ticks(&opt.latency, *argv)) {
207 if (get_ticks(&opt.jitter, *argv)) {
223 if (opt.loss > 0 || loss_type != NETEM_LOSS_UNSPEC) {
236 if (get_percent(&opt.loss, *argv)) {
361 if (get_u32(&opt.gap, *argv, 0)) {
367 if (get_percent(&opt.duplicate, *argv)) {
427 if (opt.latency == 0) {
432 if (opt.gap == 0)
433 opt.gap = 1;
434 } else if (opt.gap > 0) {
440 if (dist_data && (opt.latency == 0 || opt.jitter == 0)) {
446 if (addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)) < 0)
496 static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
505 int len = RTA_PAYLOAD(opt) - sizeof(qopt);
508 if (opt == NULL)
515 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt));
519 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt),