Home
last modified time | relevance | path

Searched refs:pktrate (Results 1 – 5 of 5) sorted by relevance

/openbsd/src/sbin/pfctl/
Dparse.y291 } pktrate; member
2140 if (filter_opts.pktrate.limit) {
2144 filter_opts.pktrate.limit = $2;
2145 filter_opts.pktrate.seconds = $4;
5928 r->pktrate.limit = opts->pktrate.limit; in filteropts_to_rule()
5929 r->pktrate.seconds = opts->pktrate.seconds; in filteropts_to_rule()
Dpfctl_parser.c896 if (r->pktrate.limit) in print_rule()
897 printf(" max-pkt-rate %u/%u", r->pktrate.limit, in print_rule()
898 r->pktrate.seconds); in print_rule()
/openbsd/src/sys/net/
Dpf_ioctl.c1554 pr->rule.pktrate.limit /= PF_THRESHOLD_MULT; in pfioctl()
3176 pf_init_threshold(&to->pktrate, from->pktrate.limit, in pf_rule_copyin()
3177 from->pktrate.seconds); in pf_rule_copyin()
Dpf.c1218 if (st->rule.ptr->pktrate.limit && pd->dir == st->direction) { in pf_find_state()
1219 pf_add_threshold(&st->rule.ptr->pktrate); in pf_find_state()
1220 if (pf_check_threshold(&st->rule.ptr->pktrate)) in pf_find_state()
4234 if (r->pktrate.limit) { in pf_match_rule()
4235 pf_add_threshold(&r->pktrate); in pf_match_rule()
4236 PF_TEST_ATTRIB((pf_check_threshold(&r->pktrate)), in pf_match_rule()
Dpfvar.h513 struct pf_threshold pktrate; member