* Drain off all datagram fragments. */
| 606 | * Drain off all datagram fragments. |
| 607 | */ |
| 608 | void |
| 609 | ipreass_drain(void) |
| 610 | { |
| 611 | |
| 612 | for (int i = 0; i < IPREASS_NHASH; i++) { |
| 613 | IPQ_LOCK(i); |
| 614 | while(!TAILQ_EMPTY(&V_ipq[i].head)) |
| 615 | ipq_drop(&V_ipq[i], TAILQ_FIRST(&V_ipq[i].head)); |
| 616 | KASSERT(V_ipq[i].count == 0, |
| 617 | ("%s: V_ipq[%d] count %d (V_ipq=%p)", __func__, i, |
| 618 | V_ipq[i].count, V_ipq)); |
| 619 | IPQ_UNLOCK(i); |
| 620 | } |
| 621 | } |
| 622 | |
| 623 | /* |
| 624 | * Drain off all datagram fragments belonging to |
no test coverage detected