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

Function ng_l2tp_seq_xack_timeout

freebsd/netgraph/ng_l2tp.c:1420–1442  ·  view source on GitHub ↗

* Handle an ack timeout. We have an outstanding ack that we * were hoping to piggy-back, but haven't, so send a ZLB. */

Source from the content-addressed store, hash-verified

1418 * were hoping to piggy-back, but haven't, so send a ZLB.
1419 */
1420static void
1421ng_l2tp_seq_xack_timeout(node_p node, hook_p hook, void *arg1, int arg2)
1422{
1423 const priv_p priv = NG_NODE_PRIVATE(node);
1424 struct l2tp_seq *const seq = &priv->seq;
1425
1426 /* Make sure callout is still active before doing anything */
1427 if (callout_pending(&seq->xack_timer) ||
1428 (!callout_active(&seq->xack_timer)))
1429 return;
1430
1431 /* Sanity check */
1432 L2TP_SEQ_CHECK(seq);
1433
1434 /* Send a ZLB */
1435 ng_l2tp_xmit_ctrl(priv, NULL, seq->ns);
1436
1437 /* callout_deactivate() is not needed here
1438 as ng_uncallout() was called by ng_l2tp_xmit_ctrl() */
1439
1440 /* Sanity check */
1441 L2TP_SEQ_CHECK(seq);
1442}
1443
1444/*
1445 * Handle a transmit timeout. The peer has failed to respond

Callers

nothing calls this directly

Calls 1

ng_l2tp_xmit_ctrlFunction · 0.85

Tested by

no test coverage detected