diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c index 6dcd262a47e2..be8e9ab0308d 100644 --- a/sys/netgraph/ng_tty.c +++ b/sys/netgraph/ng_tty.c @@ -439,10 +439,10 @@ ngt_rint_bypass(struct tty *tp, const void *buf, size_t len) * Odd, we have changed from non-bypass to bypass. It is * unlikely but not impossible, flush the data first. */ - NG_SEND_DATA_ONLY(error, sc->hook, sc->m); + NG_SEND_DATA_FLAGS(error, sc->hook, sc->m, NG_QUEUE); sc->m = NULL; } - NG_SEND_DATA_ONLY(error, sc->hook, m); + NG_SEND_DATA_FLAGS(error, sc->hook, m, NG_QUEUE); return (total); } @@ -495,7 +495,7 @@ ngt_rint(struct tty *tp, char c, int flags) /* Ship off mbuf if it's time */ if (sc->hotchar == -1 || c == sc->hotchar || m->m_len >= MHLEN) { sc->m = NULL; - NG_SEND_DATA_ONLY(error, sc->hook, m); /* Will queue */ + NG_SEND_DATA_FLAGS(error, sc->hook, m, NG_QUEUE); } return (error);