Don't drop frames if interface is in promiscuous mode.

PR:		kern/83833
Submitted by:	Eygene A. Ryabinkin
MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2005-07-22 11:27:07 +00:00
parent 406f010d3f
commit a2f4d905bb

View File

@ -712,7 +712,8 @@ vxread(struct vx_softc *sc)
* bleah!
*/
if ((eh->ether_dhost[0] & 1) == 0 /* !mcast and !bcast */
if (!(ifp->if_flags & IFF_PROMISC)
&& (eh->ether_dhost[0] & 1) == 0 /* !mcast and !bcast */
&& bcmp(eh->ether_dhost, IFP2ENADDR(sc->ifp), ETHER_ADDR_LEN)!=0) {
m_freem(m);
return;