Lines Matching defs:percent
563 ipd_toggle_corrupt(ipd_netstack_t *ins, int percent)
569 if (percent < 0 || percent > 100)
576 if (percent == ins->ipdn_corrupt)
579 ins->ipdn_corrupt = percent;
580 rval = ipd_check_hooks(ins, IPD_CORRUPT, percent != 0);
624 ipd_toggle_drop(ipd_netstack_t *ins, int percent)
630 if (percent < 0 || percent > 100)
637 if (percent == ins->ipdn_drop)
640 ins->ipdn_drop = percent;
641 rval = ipd_check_hooks(ins, IPD_DROP, percent != 0);