MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pf_unlink_src_node

Function pf_unlink_src_node

freebsd/netpfil/pf/pf.c:783–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783void
784pf_unlink_src_node(struct pf_ksrc_node *src)
785{
786
787 PF_HASHROW_ASSERT(&V_pf_srchash[pf_hashsrc(&src->addr, src->af)]);
788 LIST_REMOVE(src, entry);
789 if (src->rule.ptr)
790 counter_u64_add(src->rule.ptr->src_nodes, -1);
791}
792
793u_int
794pf_free_src_nodes(struct pf_ksrc_node_list *head)

Callers 3

pf_kill_srcnodesFunction · 0.85
pf_create_stateFunction · 0.85

Calls 2

pf_hashsrcFunction · 0.85
counter_u64_addFunction · 0.50

Tested by

no test coverage detected