Lines Matching defs:corrupt
36 " [ corrupt PERCENT [CORRELATION]] \n" \
176 struct tc_netem_corrupt corrupt;
186 memset(&corrupt, 0, sizeof(corrupt));
344 } else if (matches(*argv, "corrupt") == 0) {
347 if (get_percent(&corrupt.probability, *argv)) {
348 explain1("corrupt");
354 if (get_percent(&corrupt.correlation, *argv)) {
355 explain1("corrupt");
458 addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0)
500 const struct tc_netem_corrupt *corrupt = NULL;
533 if (RTA_PAYLOAD(tb[TCA_NETEM_CORRUPT]) < sizeof(*corrupt))
535 corrupt = RTA_DATA(tb[TCA_NETEM_CORRUPT]);
602 if (corrupt && corrupt->probability) {
603 fprintf(f, " corrupt %s",
604 sprint_percent(corrupt->probability, b1));
605 if (corrupt->correlation)
607 sprint_percent(corrupt->correlation, b1));