Lines Matching refs:corrupt
180 struct tc_netem_corrupt corrupt = {}; in netem_parse_opt() local
360 if (get_percent(&corrupt.probability, *argv)) { in netem_parse_opt()
367 if (get_percent(&corrupt.correlation, *argv)) { in netem_parse_opt()
484 addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0) in netem_parse_opt()
535 const struct tc_netem_corrupt *corrupt = NULL; in netem_print_opt() local
573 if (RTA_PAYLOAD(tb[TCA_NETEM_CORRUPT]) < sizeof(*corrupt)) in netem_print_opt()
575 corrupt = RTA_DATA(tb[TCA_NETEM_CORRUPT]); in netem_print_opt()
653 if (corrupt && corrupt->probability) { in netem_print_opt()
655 sprint_percent(corrupt->probability, b1)); in netem_print_opt()
656 if (corrupt->correlation) in netem_print_opt()
658 sprint_percent(corrupt->correlation, b1)); in netem_print_opt()