diff options
author | bde <bde@FreeBSD.org> | 1997-03-11 19:39:21 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-11 19:39:21 +0000 |
commit | 2a99cda3b230f1512bf9873ae314ad4e6fff55ec (patch) | |
tree | a613c86b8ec53d78f9e8de990f741ffa0edfbca2 /sys/net/if_sl.c | |
parent | 84274b531351581eb35ac1271fb308274a847903 (diff) | |
download | FreeBSD-src-2a99cda3b230f1512bf9873ae314ad4e6fff55ec.zip FreeBSD-src-2a99cda3b230f1512bf9873ae314ad4e6fff55ec.tar.gz |
Fixed clist limits. I got them wrong several years ago in rev.1.9
(1994/11/26). Packets with more than approximately 128 0xc0's or
0xdb's in them were untransmittable.
Diffstat (limited to 'sys/net/if_sl.c')
-rw-r--r-- | sys/net/if_sl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index fb7e5a7..79f0c66 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_sl.c 8.6 (Berkeley) 2/1/94 - * $Id$ + * $Id: if_sl.c,v 1.49 1997/02/22 09:41:06 peter Exp $ */ /* @@ -297,8 +297,8 @@ slopen(dev, tp) */ clist_alloc_cblocks(&tp->t_canq, 0, 0); clist_alloc_cblocks(&tp->t_outq, - sc->sc_if.if_mtu + SLIP_HIWAT, - sc->sc_if.if_mtu + SLIP_HIWAT); + SLIP_HIWAT + 2 * sc->sc_if.if_mtu + 1, + SLIP_HIWAT + 2 * sc->sc_if.if_mtu + 1); clist_alloc_cblocks(&tp->t_rawq, 0, 0); s = splnet(); @@ -973,8 +973,8 @@ slioctl(ifp, cmd, data) tp = sl_softc[ifp->if_unit].sc_ttyp; if (tp != NULL) clist_alloc_cblocks(&tp->t_outq, - ifp->if_mtu + SLIP_HIWAT, - ifp->if_mtu + SLIP_HIWAT); + SLIP_HIWAT + 2 * ifp->if_mtu + 1, + SLIP_HIWAT + 2 * ifp->if_mtu + 1); } break; |