Home
last modified time | relevance | path

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

/freebsd/sbin/pfctl/
H A Dpfctl.c1355 pfctl_show_sources(int dev, const struct pfctl_source_lim *srlim, in pfctl_show_sources() argument
1363 error = pfctl_source_get(pfh, srlim->id, pfctl_print_source, NULL); in pfctl_show_sources()
1365 warnc(error, "DIOCGETNSOURCE %u", srlim->id); in pfctl_show_sources()
1373 struct pfctl_source_lim srlim; in pfctl_show_sourcelims() local
1396 memset(&srlim, 0, sizeof(srlim)); in pfctl_show_sourcelims()
1397 srlim.id = id; in pfctl_show_sourcelims()
1400 error = pfctl_source_limiter_get(pfh, &srlim); in pfctl_show_sourcelims()
1402 error = pfctl_source_limiter_nget(pfh, &srlim); in pfctl_show_sourcelims()
1410 warnc(error, "DIOCGETNSOURCELIM %u", srlim.id); in pfctl_show_sourcelims()
1416 print_sourcelim(&srlim); in pfctl_show_sourcelims()
[all …]
H A Dparse.y2544 struct pfctl_sourcelim *srlim; variable
2563 srlim = calloc(1, sizeof(*srlim));
2564 if (srlim == NULL)
2567 len = strlcpy(srlim->ioc.name, $1,
2568 sizeof(srlim->ioc.name));
2570 if (len >= sizeof(srlim->ioc.name)) {
2575 srlim->ioc.id = $2->id;
2576 srlim->ioc.entries = $2->entries;
2577 srlim->ioc.limit = $2->limit;
2578 srlim->ioc.rate.limit = $2->rate.limit;
[all …]
H A Dpfctl_parser.c1130 struct pfctl_sourcelim *srlim = in print_rule()
1133 if (srlim != NULL) in print_rule()
1134 printf(" source limiter %s", srlim->ioc.name); in print_rule()
/freebsd/sys/netpfil/pf/
H A Dpf.c568 struct pf_sourcelim *srlim = sr->pfsr_parent; in pf_source_purge() local
571 srlim->pfsrlim_rate.seconds + 1) in pf_source_purge()
576 RB_REMOVE(pf_source_tree, &srlim->pfsrlim_sources, sr); in pf_source_purge()
577 RB_REMOVE(pf_source_ioc_tree, &srlim->pfsrlim_ioc_sources, sr); in pf_source_purge()
578 srlim->pfsrlim_nsources--; in pf_source_purge()
587 struct pf_sourcelim *srlim = sr->pfsr_parent; in pf_source_pfr_addr() local
594 p->pfra_net = srlim->pfsrlim_ipv4_prefix; in pf_source_pfr_addr()
599 p->pfra_net = srlim->pfsrlim_ipv6_prefix; in pf_source_pfr_addr()
609 struct pf_sourcelim *srlim = sr->pfsr_parent; in pf_source_used() local
614 sr->pfsr_rate_ts += srlim->pfsrlim_rate_token; in pf_source_used()
[all …]
H A Dpf_nl.c2757 pfsr = RB_NEXT(pf_source_ioc_tree, srlim->pfsrlim_ioc_sources, pfsr); in pf_handle_source_get()