| 111 | } |
| 112 | |
| 113 | struct accept_filter * |
| 114 | accept_filt_get(char *name) |
| 115 | { |
| 116 | struct accept_filter *p; |
| 117 | |
| 118 | ACCEPT_FILTER_LOCK(); |
| 119 | SLIST_FOREACH(p, &accept_filtlsthd, accf_next) |
| 120 | if (strcmp(p->accf_name, name) == 0) |
| 121 | break; |
| 122 | ACCEPT_FILTER_UNLOCK(); |
| 123 | |
| 124 | return (p); |
| 125 | } |
| 126 | |
| 127 | int |
| 128 | accept_filt_generic_mod_event(module_t mod, int event, void *data) |
no test coverage detected