* Clear out the data we've queued */
| 663 | * Clear out the data we've queued |
| 664 | */ |
| 665 | static void |
| 666 | ng_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 |
no outgoing calls
no test coverage detected