* Send keepalive packets, every 10 seconds. */
| 576 | * Send keepalive packets, every 10 seconds. |
| 577 | */ |
| 578 | static void |
| 579 | cisco_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. |
nothing calls this directly
no test coverage detected