diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2004-12-01 13:02:13 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2004-12-01 13:02:13 +0000 |
| commit | e68b9758d4b4622a6d63cbbf88d3e7a3349deea1 (patch) | |
| tree | aee84e852b3060960ae53411c66c032b1ad08265 /sys/netgraph/ng_source.c | |
| parent | c0c00300912745840ace64a7f6ab02f2a9453d0e (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); } |
