MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ipreass_drain

Function ipreass_drain

freebsd/netinet/ip_reass.c:608–621  ·  view source on GitHub ↗

* Drain off all datagram fragments. */

Source from the content-addressed store, hash-verified

606 * Drain off all datagram fragments.
607 */
608void
609ipreass_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

Callers 3

ip_drainFunction · 0.85
ipreass_destroyFunction · 0.85
sysctl_maxfragpacketsFunction · 0.85

Calls 1

ipq_dropFunction · 0.85

Tested by

no test coverage detected