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

Function cisco_keepalive

freebsd/netgraph/ng_cisco.c:578–588  ·  view source on GitHub ↗

* Send keepalive packets, every 10 seconds. */

Source from the content-addressed store, hash-verified

576 * Send keepalive packets, every 10 seconds.
577 */
578static void
579cisco_keepalive(node_p node, hook_p hook, void *arg1, int arg2)
580{
581 const sc_p sc = arg1;
582
583 cisco_send(sc, CISCO_KEEPALIVE_REQ, sc->local_seq, sc->remote_seq);
584 if (sc->seqRetries++ > 1)
585 cisco_notify(sc, NGM_LINK_IS_DOWN);
586 ng_callout(&sc->handle, node, NULL, (hz * KEEPALIVE_SECS),
587 &cisco_keepalive, (void *)sc, 0);
588}
589
590/*
591 * Send Cisco keepalive packet.

Callers

nothing calls this directly

Calls 3

cisco_sendFunction · 0.85
cisco_notifyFunction · 0.85
ng_calloutFunction · 0.70

Tested by

no test coverage detected