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

Function pf_unlink_rule

freebsd/netpfil/pf/pf_ioctl.c:418–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418static void
419pf_unlink_rule(struct pf_krulequeue *rulequeue, struct pf_krule *rule)
420{
421
422 PF_RULES_WASSERT();
423
424 TAILQ_REMOVE(rulequeue, rule, entries);
425
426 PF_UNLNKDRULES_LOCK();
427 rule->rule_flag |= PFRULE_REFS;
428 TAILQ_INSERT_TAIL(&V_pf_unlinked_rules, rule, entries);
429 PF_UNLNKDRULES_UNLOCK();
430}
431
432void
433pf_free_rule(struct pf_krule *rule)

Callers 4

pf_begin_rulesFunction · 0.85
pf_rollback_rulesFunction · 0.85
pf_commit_rulesFunction · 0.85
pfioctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected