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:
parent
406f010d3f
commit
a2f4d905bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user