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

Function pf_free_src_node

freebsd/netpfil/pf/pf.c:705–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705static void
706pf_free_src_node(struct pf_ksrc_node *sn)
707{
708
709 for (int i = 0; i < 2; i++) {
710 if (sn->bytes[i])
711 counter_u64_free(sn->bytes[i]);
712 if (sn->packets[i])
713 counter_u64_free(sn->packets[i]);
714 }
715 uma_zfree(V_pf_sources_z, sn);
716}
717
718static int
719pf_insert_src_node(struct pf_ksrc_node **sn, struct pf_krule *rule,

Callers 2

pf_insert_src_nodeFunction · 0.85
pf_free_src_nodesFunction · 0.85

Calls 2

counter_u64_freeFunction · 0.85
uma_zfreeFunction · 0.50

Tested by

no test coverage detected