Home
last modified time | relevance | path

Searched refs:pfsr (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/netpfil/pf/
H A Dpf_nl.c2780 struct pf_source *pfsr; in pf_handle_source_get() local
2800 pfsr = (ghdr->cmd == PFNL_CMD_SOURCE_GET ? pf_source_rb_find : in pf_handle_source_get()
2802 if (pfsr == NULL) { in pf_handle_source_get()
2816 nlattr_add_u8(nw, PF_SRC_AF, pfsr->pfsr_af); in pf_handle_source_get()
2817 nlattr_add_u32(nw, PF_SRC_RDOMAIN, pfsr->pfsr_rdomain); in pf_handle_source_get()
2818 nlattr_add_in6_addr(nw, PF_SRC_ADDR, &pfsr->pfsr_addr.v6); in pf_handle_source_get()
2820 nlattr_add_u32(nw, PF_SRC_INUSE, pfsr->pfsr_inuse); in pf_handle_source_get()
2821 nlattr_add_u64(nw, PF_SRC_ADMITTED, pfsr->pfsr_counters.admitted); in pf_handle_source_get()
2822 nlattr_add_u64(nw, PF_SRC_HARDLIMITED, pfsr->pfsr_counters.hardlimited); in pf_handle_source_get()
2823 nlattr_add_u64(nw, PF_SRC_RATELIMITED, pfsr->pfsr_counters.ratelimited); in pf_handle_source_get()
[all …]
H A Dpf_ioctl.c1881 struct pf_source *pfsr; in pf_sourcelim_unlink() local
1886 while ((pfsr = RB_ROOT(&pfsrlim->pfsrlim_sources)) != NULL) { in pf_sourcelim_unlink()
1887 RB_REMOVE(pf_source_tree, &pfsrlim->pfsrlim_sources, pfsr); in pf_sourcelim_unlink()
1889 pfsr); in pf_sourcelim_unlink()
1890 if (pfsr->pfsr_inuse == 0) in pf_sourcelim_unlink()
1891 TAILQ_REMOVE(&pf_source_gc, pfsr, pfsr_empty_gc); in pf_sourcelim_unlink()
1894 TAILQ_FOREACH(pfl, &pfsr->pfsr_states, pfl_link) { in pf_sourcelim_unlink()
1906 TAILQ_CONCAT(garbage, &pfsr->pfsr_states, pfl_link); in pf_sourcelim_unlink()
1908 free(pfsr, M_PF_SOURCE_LIM); in pf_sourcelim_unlink()
2383 struct pf_source *pfsr; in pf_source_clr() local
[all …]