From 046f73ccbbd94f80f3368e18dc6cc9d19ae3f6ed Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 10 Feb 2002 15:29:58 +0000 Subject: [PATCH] More ALTQ gotchas from Thomas Klausner: Use IFQ_SET_MAXLEN instead of accesing opaque queue members directly. Don't forget to IFQ_SET_READY the queue. --- sys/netisdn/i4b_isppp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/netisdn/i4b_isppp.c b/sys/netisdn/i4b_isppp.c index 0bfce7714233..fd6f4e890728 100644 --- a/sys/netisdn/i4b_isppp.c +++ b/sys/netisdn/i4b_isppp.c @@ -34,7 +34,7 @@ * the "cx" driver for Cronyx's HDLC-in-hardware device). This driver * is only the glue between sppp and i4b. * - * $Id: i4b_isppp.c,v 1.10 2002/01/06 20:18:19 martin Exp $ + * $Id: i4b_isppp.c,v 1.11 2002/02/10 15:29:58 martin Exp $ * * $FreeBSD$ * @@ -43,7 +43,7 @@ *---------------------------------------------------------------------------*/ #include -__KERNEL_RCSID(0, "$NetBSD: i4b_isppp.c,v 1.10 2002/01/06 20:18:19 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: i4b_isppp.c,v 1.11 2002/02/10 15:29:58 martin Exp $"); #ifndef __NetBSD__ #define USE_ISPPP @@ -276,7 +276,8 @@ i4bispppattach() sc->sc_sp.pp_if.if_hdrlen = 0; sc->sc_sp.pp_if.if_addrlen = 0; - sc->sc_sp.pp_if.if_snd.ifq_maxlen = IFQ_MAXLEN; + IFQ_SET_MAXLEN(&sc->sc_sp.pp_if.if_snd, IFQ_MAXLEN); + IFQ_SET_READY(&sc->sc_sp.pp_if.if_snd); sc->sc_sp.pp_if.if_ipackets = 0; sc->sc_sp.pp_if.if_ierrors = 0;