diff options
author | joerg <joerg@FreeBSD.org> | 1997-03-15 19:58:43 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-03-15 19:58:43 +0000 |
commit | 0b723f48b8de1ddf82335d986495918060c8f8ae (patch) | |
tree | 2d47bc70ebe93273c8dfcbc7fdfeb95c016ccf2f | |
parent | e57e7ec6e4e381b22c9e8430781a408b76dd0be4 (diff) | |
download | FreeBSD-src-0b723f48b8de1ddf82335d986495918060c8f8ae.zip FreeBSD-src-0b723f48b8de1ddf82335d986495918060c8f8ae.tar.gz |
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>
-rw-r--r-- | sys/net/if_fddisubr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index dea5e70..434486c 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -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 |