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

Function pf_kanchor_remove

freebsd/netpfil/pf/pf_ruleset.c:385–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void
386pf_kanchor_remove(struct pf_krule *r)
387{
388 if (r->anchor == NULL)
389 return;
390 if (r->anchor->refcnt <= 0) {
391 printf("pf_anchor_remove: broken refcount\n");
392 r->anchor = NULL;
393 return;
394 }
395 if (!--r->anchor->refcnt)
396 pf_remove_if_empty_kruleset(&r->anchor->ruleset);
397 r->anchor = NULL;
398}

Callers 1

pf_free_ruleFunction · 0.85

Calls 2

printfFunction · 0.50

Tested by

no test coverage detected