Home
last modified time | relevance | path

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

/src/sys/netpfil/pf/
H A Dpf_nl.c2736 struct pf_source *pfsr; in pf_handle_source_get() local
2756 pfsr = (ghdr->cmd == PFNL_CMD_SOURCE_GET ? pf_source_rb_find : in pf_handle_source_get()
2758 if (pfsr == NULL) { in pf_handle_source_get()
2772 nlattr_add_u8(nw, PF_SRC_AF, pfsr->pfsr_af); in pf_handle_source_get()
2773 nlattr_add_u32(nw, PF_SRC_RDOMAIN, pfsr->pfsr_rdomain); in pf_handle_source_get()
2774 nlattr_add_in6_addr(nw, PF_SRC_ADDR, &pfsr->pfsr_addr.v6); in pf_handle_source_get()
2776 nlattr_add_u32(nw, PF_SRC_INUSE, pfsr->pfsr_inuse); in pf_handle_source_get()
2777 nlattr_add_u64(nw, PF_SRC_ADMITTED, pfsr->pfsr_counters.admitted); in pf_handle_source_get()
2778 nlattr_add_u64(nw, PF_SRC_HARDLIMITED, pfsr->pfsr_counters.hardlimited); in pf_handle_source_get()
2779 nlattr_add_u64(nw, PF_SRC_RATELIMITED, pfsr->pfsr_counters.ratelimited); in pf_handle_source_get()
[all …]
H A Dpf_ioctl.c1883 struct pf_source *pfsr; in pf_sourcelim_unlink() local
1888 while ((pfsr = RB_ROOT(&pfsrlim->pfsrlim_sources)) != NULL) { in pf_sourcelim_unlink()
1889 RB_REMOVE(pf_source_tree, &pfsrlim->pfsrlim_sources, pfsr); in pf_sourcelim_unlink()
1891 pfsr); in pf_sourcelim_unlink()
1892 if (pfsr->pfsr_inuse == 0) in pf_sourcelim_unlink()
1893 TAILQ_REMOVE(&pf_source_gc, pfsr, pfsr_empty_gc); in pf_sourcelim_unlink()
1896 TAILQ_FOREACH(pfl, &pfsr->pfsr_states, pfl_link) { in pf_sourcelim_unlink()
1908 TAILQ_CONCAT(garbage, &pfsr->pfsr_states, pfl_link); in pf_sourcelim_unlink()
1910 free(pfsr, M_PF_SOURCE_LIM); in pf_sourcelim_unlink()
2383 struct pf_source *pfsr; in pf_source_clr() local
[all …]