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_source.c | |
| parent | be392b40255efde144eacc0c3d5af66fbbec3243 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph/ng_source.c')
| -rw-r--r-- | sys/netgraph/ng_source.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c index 809c7ffe5853..347170bc6321 100644 --- a/sys/netgraph/ng_source.c +++ b/sys/netgraph/ng_source.c @@ -331,7 +331,7 @@ ng_source_rcvmsg(node_p node, item_p item, hook_p lasthook) timevalclear(&sc->stats.elapsedTime); timevalclear(&sc->stats.endTime); getmicrotime(&sc->stats.startTime); - ng_timeout(&sc->intr_ch, node, NULL, 0, + ng_callout(&sc->intr_ch, node, NULL, 0, ng_source_intr, sc, 0); } break; @@ -359,7 +359,7 @@ ng_source_rcvmsg(node_p node, item_p item, hook_p lasthook) timevalclear(&sc->stats.elapsedTime); timevalclear(&sc->stats.endTime); getmicrotime(&sc->stats.startTime); - ng_timeout(&sc->intr_ch, node, NULL, 0, + ng_callout(&sc->intr_ch, node, NULL, 0, ng_source_intr, sc, 0); } break; @@ -586,7 +586,7 @@ static void ng_source_stop (sc_p sc) { if (sc->node->nd_flags & NG_SOURCE_ACTIVE) { - ng_untimeout(&sc->intr_ch, sc->node); + ng_uncallout(&sc->intr_ch, sc->node); sc->node->nd_flags &= ~NG_SOURCE_ACTIVE; getmicrotime(&sc->stats.endTime); sc->stats.elapsedTime = sc->stats.endTime; @@ -626,7 +626,7 @@ ng_source_intr(node_p node, hook_p hook, void *arg1, int arg2) if (sc->packets == 0) ng_source_stop(sc); else - ng_timeout(&sc->intr_ch, node, NULL, NG_SOURCE_INTR_TICKS, + ng_callout(&sc->intr_ch, node, NULL, NG_SOURCE_INTR_TICKS, ng_source_intr, sc, 0); } |
