Home | History | Annotate | Download | only in tc

Lines Matching refs:corrupt

35 "                 [ corrupt PERCENT [CORRELATION]] \n" \
133 struct tc_netem_corrupt corrupt;
141 memset(&corrupt, 0, sizeof(corrupt));
205 } else if (matches(*argv, "corrupt") == 0) {
208 if (get_percent(&corrupt.probability, *argv)) {
209 explain1("corrupt");
215 if (get_percent(&corrupt.correlation, *argv)) {
216 explain1("corrupt");
290 addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0)
308 const struct tc_netem_corrupt *corrupt = NULL;
338 if (RTA_PAYLOAD(tb[TCA_NETEM_CORRUPT]) < sizeof(*corrupt))
340 corrupt = RTA_DATA(tb[TCA_NETEM_CORRUPT]);
377 if (corrupt && corrupt->probability) {
378 fprintf(f, " corrupt %s",
379 sprint_percent(corrupt->probability, b1));
380 if (corrupt->correlation)
382 sprint_percent(corrupt->correlation, b1));