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

Function ng_pptpgre_start_reorder_timer

freebsd/netgraph/ng_pptpgre.c:1152–1161  ·  view source on GitHub ↗

* Start a timer for the reorder queue. This assumes the timer is not * already running. */

Source from the content-addressed store, hash-verified

1150 * already running.
1151 */
1152static void
1153ng_pptpgre_start_reorder_timer(hpriv_p hpriv)
1154{
1155 int ticks;
1156
1157 /* Be conservative: timeout can happen up to 1 tick early */
1158 ticks = (((reorder_timeout * hz) + 1000 - 1) / 1000) + 1;
1159 ng_callout(&hpriv->reorderTimer, hpriv->node, hpriv->hook,
1160 ticks, ng_pptpgre_reorder_timeout, hpriv, 0);
1161}
1162
1163/*
1164 * The oldest packet spent too much time in the reorder queue.

Callers 2

ng_pptpgre_rcvdata_lowerFunction · 0.85

Calls 1

ng_calloutFunction · 0.70

Tested by

no test coverage detected