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

Function ng_pptpgre_send_ack_timeout

freebsd/netgraph/ng_pptpgre.c:1137–1146  ·  view source on GitHub ↗

* We've waited as long as we're willing to wait before sending an * acknowledgement to the peer for received frames. We had hoped to * be able to piggy back our acknowledgement on an outgoing data frame, * but apparently there haven't been any since. So send the ack now. */

Source from the content-addressed store, hash-verified

1135 * but apparently there haven't been any since. So send the ack now.
1136 */
1137static void
1138ng_pptpgre_send_ack_timeout(node_p node, hook_p hook, void *arg1, int arg2)
1139{
1140 const hpriv_p hpriv = arg1;
1141
1142 mtx_lock(&hpriv->mtx);
1143 /* Send a frame with an ack but no payload */
1144 ng_pptpgre_xmit(hpriv, NULL);
1145 mtx_assert(&hpriv->mtx, MA_NOTOWNED);
1146}
1147
1148/*
1149 * Start a timer for the reorder queue. This assumes the timer is not

Callers

nothing calls this directly

Calls 3

ng_pptpgre_xmitFunction · 0.85
mtx_assertFunction · 0.85
mtx_lockFunction · 0.50

Tested by

no test coverage detected