| 703 | } |
| 704 | |
| 705 | static void |
| 706 | pf_free_src_node(struct pf_ksrc_node *sn) |
| 707 | { |
| 708 | |
| 709 | for (int i = 0; i < 2; i++) { |
| 710 | if (sn->bytes[i]) |
| 711 | counter_u64_free(sn->bytes[i]); |
| 712 | if (sn->packets[i]) |
| 713 | counter_u64_free(sn->packets[i]); |
| 714 | } |
| 715 | uma_zfree(V_pf_sources_z, sn); |
| 716 | } |
| 717 | |
| 718 | static int |
| 719 | pf_insert_src_node(struct pf_ksrc_node **sn, struct pf_krule *rule, |
no test coverage detected