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

Function ng_ppp_frag_reset

freebsd/netgraph/ng_ppp.c:2609–2621  ·  view source on GitHub ↗

* Free all entries in the fragment queue */

Source from the content-addressed store, hash-verified

2607 * Free all entries in the fragment queue
2608 */
2609static void
2610ng_ppp_frag_reset(node_p node)
2611{
2612 const priv_p priv = NG_NODE_PRIVATE(node);
2613 struct ng_ppp_frag *qent, *qnext;
2614
2615 for (qent = TAILQ_FIRST(&priv->frags); qent; qent = qnext) {
2616 qnext = TAILQ_NEXT(qent, f_qent);
2617 NG_FREE_M(qent->data);
2618 TAILQ_INSERT_HEAD(&priv->fragsfree, qent, f_qent);
2619 }
2620 TAILQ_INIT(&priv->frags);
2621}
2622
2623/*
2624 * Start fragment queue timer

Callers 2

ng_ppp_shutdownFunction · 0.85
ng_ppp_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected