From: briggs Date: Fri, 18 Apr 1997 11:58:34 +0000 (+0000) Subject: Fix from Denny Gentry--initialize receive seq. count and don't skip an entry X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fa6e933c78408130c73025817afac8e5f3063e1d;p=openbsd Fix from Denny Gentry--initialize receive seq. count and don't skip an entry when programming the CAM. --- diff --git a/sys/arch/mac68k/dev/if_sn.c b/sys/arch/mac68k/dev/if_sn.c index e3034b18763..3bd38797bf8 100644 --- a/sys/arch/mac68k/dev/if_sn.c +++ b/sys/arch/mac68k/dev/if_sn.c @@ -1,5 +1,5 @@ /* $NetBSD: if_sn.c,v 1.7 1997/03/20 17:47:51 scottr Exp $ */ -/* $OpenBSD: if_sn.c,v 1.20 1997/04/13 14:14:51 briggs Exp $ */ +/* $OpenBSD: if_sn.c,v 1.21 1997/04/18 11:58:34 briggs Exp $ */ /* * National Semiconductor SONIC Driver @@ -696,7 +696,6 @@ camprogram(sc) /* Assume we won't need allmulti bit. */ ifp->if_flags &= ~IFF_ALLMULTI; - mcount++; /* Loop through multicast addresses */ ETHER_FIRST_MULTI(step, &sc->sc_arpcom, enm); while (enm != NULL) { @@ -840,6 +839,7 @@ initialise_rra(sc) /* rea must point just past the end of the rra space */ NIC_PUT(sc, SNR_REA, LOWER(sc->v_rea)); NIC_PUT(sc, SNR_RRP, LOWER(sc->v_rra[0])); + NIC_PUT(sc, SNR_RSC, 0); /* fill up SOME of the rra with buffers */ for (i = 0; i < NRBA; i++) {