summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_source.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_source.c')
-rw-r--r--sys/netgraph/ng_source.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c
index 809c7ff..347170b 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);
}
OpenPOWER on IntegriCloud