Fix from Matt for the problem described in PR # kern/2990: ``DEC FDDI

is a little *too* promiscuous''

Also a 2.2 candidate, again, after testing.

Submitted by:	Matt Thomas <matt@lkg.dec.com>
This commit is contained in:
joerg 1997-03-15 19:58:43 +00:00
parent 1846d08433
commit 8115727bd9

View File

@ -33,7 +33,7 @@
* SUCH DAMAGE.
*
* from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
* $Id$
* $Id: if_fddisubr.c,v 1.16 1997/02/22 09:41:01 peter Exp $
*/
#include <sys/param.h>
@ -476,6 +476,11 @@ fddi_input(ifp, fh, m)
else
m->m_flags |= M_MCAST;
ifp->if_imcasts++;
} else if ((ifp->if_flags & IFF_PROMISC)
&& bcmp(((struct arpcom *)ifp)->ac_enaddr, (caddr_t)fh->fddi_dhost,
sizeof(fh->fddi_dhost)) != 0) {
m_freem(m);
return;
}
#ifdef M_LINK0