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.
This commit is contained in:
parent
836a4742ac
commit
046f73ccbb
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
|
|
Loading…
Reference in New Issue