FreeBSD/sys/netinet/ip_reass.c
/*
 * Drain off all datagram fragments.
 */
Drain off all datagram fragments.
Drain off all datagram fragments .
void
ipreass_drain(void)
{
	for (int i = 0; i < IPREASS_NHASH; i++) {
		IPQ_LOCK(i);
		while(!TAILQ_EMPTY(&V_ipq[i].head))
			ipq_drop(&V_ipq[i].head, TAILQ_FIRST(&V_ipq[i].head));
		IPQ_UNLOCK(i);
	}
}
void ipreass_drain ( void ) { for ( int i = 0 ; i < IPREASS_NHASH ; i ++ ) { IPQ_LOCK ( i ) ; while ( ! TAILQ_EMPTY ( & V_ipq [ i ] . head ) ) ipq_drop ( & V_ipq [ i ] . head , TAILQ_FIRST ( & V_ipq [ i ] . head ) ) ; IPQ_UNLOCK ( i ) ; } }
Drain off all datagram fragments.
Drain off all datagram fragments .