Lines Matching refs:pfs
57 static struct pfctl_status *pfs; variable
169 val->v.uint32 = pfs->running; in pf_status()
172 runtime = (pfs->since > 0) ? in pf_status()
173 time(NULL) - pfs->since : 0; in pf_status()
177 val->v.uint32 = pfs->debug; in pf_status()
180 sprintf(str, "0x%08x", ntohl(pfs->hostid)); in pf_status()
208 val->v.counter64 = pfctl_status_counter(pfs, PFRES_MATCH); in pf_counter()
211 val->v.counter64 = pfctl_status_counter(pfs, PFRES_BADOFF); in pf_counter()
214 val->v.counter64 = pfctl_status_counter(pfs, PFRES_FRAG); in pf_counter()
217 val->v.counter64 = pfctl_status_counter(pfs, PFRES_SHORT); in pf_counter()
220 val->v.counter64 = pfctl_status_counter(pfs, PFRES_NORM); in pf_counter()
223 val->v.counter64 = pfctl_status_counter(pfs, PFRES_MEMORY); in pf_counter()
251 val->v.uint32 = pfs->states; in pf_statetable()
255 pfctl_status_fcounter(pfs, FCNT_STATE_SEARCH); in pf_statetable()
259 pfctl_status_fcounter(pfs, FCNT_STATE_INSERT); in pf_statetable()
263 pfctl_status_fcounter(pfs, FCNT_STATE_REMOVALS); in pf_statetable()
291 val->v.uint32 = pfs->src_nodes; in pf_srcnodes()
295 pfctl_status_scounter(pfs, SCNT_SRC_NODE_SEARCH); in pf_srcnodes()
299 pfctl_status_scounter(pfs, SCNT_SRC_NODE_INSERT); in pf_srcnodes()
303 pfctl_status_scounter(pfs, SCNT_SRC_NODE_REMOVALS); in pf_srcnodes()
462 strlcpy(str, pfs->ifname, sizeof str); in pf_logif()
465 val->v.counter64 = pfs->bcounters[IPV4][IN]; in pf_logif()
468 val->v.counter64 = pfs->bcounters[IPV4][OUT]; in pf_logif()
472 pfs->pcounters[IPV4][IN][PF_PASS]; in pf_logif()
476 pfs->pcounters[IPV4][IN][PF_DROP]; in pf_logif()
480 pfs->pcounters[IPV4][OUT][PF_PASS]; in pf_logif()
484 pfs->pcounters[IPV4][OUT][PF_DROP]; in pf_logif()
487 val->v.counter64 = pfs->bcounters[IPV6][IN]; in pf_logif()
490 val->v.counter64 = pfs->bcounters[IPV6][OUT]; in pf_logif()
494 pfs->pcounters[IPV6][IN][PF_PASS]; in pf_logif()
498 pfs->pcounters[IPV6][IN][PF_DROP]; in pf_logif()
502 pfs->pcounters[IPV6][OUT][PF_PASS]; in pf_logif()
506 pfs->pcounters[IPV6][OUT][PF_DROP]; in pf_logif()
1287 pfctl_free_status(pfs); in pfs_refresh()
1288 pfs = pfctl_get_status_h(pfh); in pfs_refresh()
1290 if (pfs == NULL) { in pfs_refresh()
1754 pfctl_free_status(pfs); in pf_fini()
1755 pfs = NULL; in pf_fini()