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

Function pfr_remove_kentries

freebsd/netpfil/pf/pf_table.c:882–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880}
881
882static void
883pfr_remove_kentries(struct pfr_ktable *kt,
884 struct pfr_kentryworkq *workq)
885{
886 struct pfr_kentry *p;
887 int n = 0;
888
889 SLIST_FOREACH(p, workq, pfrke_workq) {
890 pfr_unroute_kentry(kt, p);
891 n++;
892 }
893 kt->pfrkt_cnt -= n;
894 pfr_destroy_kentries(workq);
895}
896
897static void
898pfr_clean_node_mask(struct pfr_ktable *kt,

Callers 5

pfr_clr_addrsFunction · 0.85
pfr_del_addrsFunction · 0.85
pfr_set_addrsFunction · 0.85
pfr_commit_ktableFunction · 0.85
pfr_setflags_ktableFunction · 0.85

Calls 2

pfr_unroute_kentryFunction · 0.85
pfr_destroy_kentriesFunction · 0.85

Tested by

no test coverage detected