diff options
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 19b486a50c3..9e2f9924de9 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ppp.c,v 1.114 2020/06/24 22:03:42 cheloha Exp $ */ +/* $OpenBSD: if_ppp.c,v 1.115 2020/07/10 13:22:22 patrick Exp $ */ /* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */ /* @@ -768,7 +768,7 @@ pppoutput(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst, /* XXX we should limit the number of packets on this queue */ ml_enqueue(&sc->sc_npqueue, m0); } else { - IFQ_ENQUEUE(&sc->sc_if.if_snd, m0, error); + error = ifq_enqueue(&sc->sc_if.if_snd, m0); if (error) { sc->sc_if.if_oerrors++; sc->sc_stats.ppp_oerrors++; @@ -811,7 +811,7 @@ ppp_requeue(struct ppp_softc *sc) switch (mode) { case NPMODE_PASS: - IFQ_ENQUEUE(&sc->sc_if.if_snd, m, error); + error = ifq_enqueue(&sc->sc_if.if_snd, m); if (error) { sc->sc_if.if_oerrors++; sc->sc_stats.ppp_oerrors++; @@ -858,7 +858,7 @@ ppp_dequeue(struct ppp_softc *sc) * Grab a packet to send: first try the fast queue, then the * normal queue. */ - IFQ_DEQUEUE(&sc->sc_if.if_snd, m); + m = ifq_dequeue(&sc->sc_if.if_snd); if (m == NULL) return NULL; |