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

Function ng_source_clr_data

freebsd/netgraph/ng_source.c:665–678  ·  view source on GitHub ↗

* Clear out the data we've queued */

Source from the content-addressed store, hash-verified

663 * Clear out the data we've queued
664 */
665static void
666ng_source_clr_data (sc_p sc)
667{
668 struct mbuf *m;
669
670 for (;;) {
671 _IF_DEQUEUE(&sc->snd_queue, m);
672 if (m == NULL)
673 break;
674 NG_FREE_M(m);
675 }
676 sc->queueOctets = 0;
677 sc->last_packet = NULL;
678}
679
680/*
681 * Start sending queued data out the output hook

Callers 2

ng_source_rcvmsgFunction · 0.85
ng_source_rmnodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected