FreeBSD/sys/netgraph/netflow/netflow_v9.c
/*
 * Re-attach incomplete datagram back to fib instance.
 * If there is already another one, then send incomplete.
 */
Re-attach incomplete datagram back to fib instance.
If there is already another one, then send incomplete.
Re - attach incomplete datagram back to fib instance . If there is already another one then send incomplete .
void
return_export9_dgram(priv_p priv, fib_export_p fe, item_p item, struct netflow_v9_packet_opt *t, int flags)
{
	mtx_lock(&fe->export9_mtx);
	if (fe->exp.item9 == NULL) {
		fe->exp.item9 = item;
		fe->exp.item9_opt = t;
		mtx_unlock(&fe->export9_mtx);
	} else {
		mtx_unlock(&fe->export9_mtx);
		export9_send(priv, fe, item, t, flags);
	}
}
void return_export9_dgram ( priv_p priv , fib_export_p fe , item_p item , struct netflow_v9_packet_opt * t , int flags ) { mtx_lock ( & fe -> export9_mtx ) ; if ( fe -> exp . item9 == NULL ) { fe -> exp . item9 = item ; fe -> exp . item9_opt = t ; mtx_unlock ( & fe -> export9_mtx ) ; } else { mtx_unlock ( & fe -> export9_mtx ) ; export9_send ( priv , fe , item , t , flags ) ; } }
Re-attach incomplete datagram back to fib instance.
Re - attach incomplete datagram back to fib instance .
/*
	 * It may happen on SMP, that some thread has already
	 * put its item there, in this case we bail out and
	 * send what we have to collector.
	 */