| 1458 | } |
| 1459 | |
| 1460 | static __inline int |
| 1461 | pf_release_state(struct pf_state *s) |
| 1462 | { |
| 1463 | |
| 1464 | if (refcount_release(&s->refs)) { |
| 1465 | pf_free_state(s); |
| 1466 | return (1); |
| 1467 | } else |
| 1468 | return (0); |
| 1469 | } |
| 1470 | |
| 1471 | extern struct pf_state *pf_find_state_byid(uint64_t, uint32_t); |
| 1472 | extern struct pf_state *pf_find_state_all(struct pf_state_key_cmp *, |
no test coverage detected