diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2004-12-01 11:56:32 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2004-12-01 11:56:32 +0000 |
commit | f9d9e1b4ecea993a101005af130bd4db9fa2b010 (patch) | |
tree | 993048ef397a314598d7acf4cda3afeaf0b93717 /sys/netgraph/ng_cisco.c | |
parent | be392b40255efde144eacc0c3d5af66fbbec3243 (diff) | |
download | src-f9d9e1b4ecea993a101005af130bd4db9fa2b010.tar.gz src-f9d9e1b4ecea993a101005af130bd4db9fa2b010.zip |
Notes
Diffstat (limited to 'sys/netgraph/ng_cisco.c')
-rw-r--r-- | sys/netgraph/ng_cisco.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_cisco.c b/sys/netgraph/ng_cisco.c index 33f027a5f6dc..0f7b7b98f6e5 100644 --- a/sys/netgraph/ng_cisco.c +++ b/sys/netgraph/ng_cisco.c @@ -222,7 +222,7 @@ cisco_newhook(node_p node, hook_p hook, const char *name) NG_HOOK_SET_PRIVATE(hook, &sc->downstream); /* Start keepalives */ - ng_timeout(&sc->handle, node, NULL, (hz * KEEPALIVE_SECS), + ng_callout(&sc->handle, node, NULL, (hz * KEEPALIVE_SECS), &cisco_keepalive, (void *)sc, 0); } else if (strcmp(name, NG_CISCO_HOOK_INET) == 0) { sc->inet.hook = hook; @@ -425,7 +425,7 @@ cisco_disconnect(hook_p hook) pep->hook = NULL; if (pep->af == 0xffff) /* If it is the downstream hook, stop the timers */ - ng_untimeout(&sc->handle, NG_HOOK_NODE(hook)); + ng_uncallout(&sc->handle, NG_HOOK_NODE(hook)); } /* If no more hooks, remove the node */ @@ -587,7 +587,7 @@ cisco_keepalive(node_p node, hook_p hook, void *arg1, int arg2) cisco_send(sc, CISCO_KEEPALIVE_REQ, sc->local_seq, sc->remote_seq); if (sc->seqRetries++ > 1) cisco_notify(sc, NGM_LINK_IS_DOWN); - ng_timeout(&sc->handle, node, NULL, (hz * KEEPALIVE_SECS), + ng_callout(&sc->handle, node, NULL, (hz * KEEPALIVE_SECS), &cisco_keepalive, (void *)sc, 0); } |