Lines Matching refs:filter
53 * An IP filter can be removed only when kipf_ref is zero
54 * If an IP filter cannot be removed because kipf_ref is not null, then
55 * the IP filter is marjed and kipf_delayed_remove is set so that when
56 * kipf_ref eventually goes down to zero, the IP filter is removed
84 struct ipfilter *filter;
86 while ((filter = TAILQ_FIRST(&tbr_filters))) {
87 ipf_detach_func ipf_detach = filter->ipf_filter.ipf_detach;
88 void* cookie = filter->ipf_filter.cookie;
90 TAILQ_REMOVE(filter->ipf_head, filter, ipf_link);
91 TAILQ_REMOVE(&tbr_filters, filter, ipf_tbr);
98 /* In case some filter got to run while we released the lock */
109 const struct ipf_filter* filter,
114 if (filter->name == NULL || (filter->ipf_input == NULL && filter->ipf_output == NULL))
122 new_filter->ipf_filter = *filter;
127 * Make sure third parties have a chance to filter packets before
130 if (filter->name != NULL &&
131 strcmp(filter->name, "com.apple.nke.SharedIP") == 0) {
146 const struct ipf_filter* filter,
149 return ipf_add(filter, filter_ref, &ipv4_filters);
154 const struct ipf_filter* filter,
157 return ipf_add(filter, filter_ref, &ipv6_filters);