| 138 | static char rule_string[MAC_RULE_STRING_LEN]; |
| 139 | |
| 140 | static void |
| 141 | toast_rules(struct rulehead *head) |
| 142 | { |
| 143 | struct rule *rule; |
| 144 | |
| 145 | while ((rule = TAILQ_FIRST(head)) != NULL) { |
| 146 | TAILQ_REMOVE(head, rule, r_entries); |
| 147 | free(rule, M_PORTACL); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /* |
| 152 | * Note that there is an inherent race condition in the unload of modules |
no test coverage detected