aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-07-22 11:27:07 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-07-22 11:27:07 +0000
commita2f4d905bb6f91e6098fd41f61f53b6480496d31 (patch)
tree63451d68971f6d36be7a64b7f6ba07766562bf79 /sys/dev
parent406f010d3fabacc7d43b2a488419ca5e29c04296 (diff)
downloadsrc-a2f4d905bb6f91e6098fd41f61f53b6480496d31.tar.gz
src-a2f4d905bb6f91e6098fd41f61f53b6480496d31.zip
Don't drop frames if interface is in promiscuous mode.
PR: kern/83833 Submitted by: Eygene A. Ryabinkin MFC after: 3 days
Notes
Notes: svn path=/head/; revision=148284
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vx/if_vx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index 468fc4e73942..98aa192c1b82 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -712,7 +712,8 @@ again:
* 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;