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

Function ng_pptpgre_ack

freebsd/netgraph/ng_pptpgre.c:698–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698static void
699ng_pptpgre_ack(const hpriv_p hpriv)
700{
701 mtx_assert(&hpriv->mtx, MA_OWNED);
702 if (!(callout_pending(&hpriv->sackTimer))) {
703 /* If delayed ACK is disabled, send it now */
704 if (!hpriv->conf.enableDelayedAck) { /* ack now */
705 ng_pptpgre_xmit(hpriv, NULL);
706 /* ng_pptpgre_xmit() drops the mutex */
707 return;
708 }
709 /* ack later */
710 ng_pptpgre_start_send_ack_timer(hpriv);
711 mtx_unlock(&hpriv->mtx);
712 return;
713 }
714 mtx_unlock(&hpriv->mtx);
715}
716
717/*
718 * Delivers packets from the queue "q" to upper layers. Frees delivered

Callers 2

ng_pptpgre_rcvdata_lowerFunction · 0.85

Calls 4

mtx_assertFunction · 0.85
ng_pptpgre_xmitFunction · 0.85
mtx_unlockFunction · 0.50

Tested by

no test coverage detected