socsvn commit: r289172 - soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve
iateaca at FreeBSD.org
iateaca at FreeBSD.org
Mon Aug 3 20:15:13 UTC 2015
Author: iateaca
Date: Mon Aug 3 20:15:11 2015
New Revision: 289172
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=289172
Log:
accept the frames in the Promiscuous mode for the destination addresses that do not match the station's address
Modified:
soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c
Modified: soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c
==============================================================================
--- soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c Mon Aug 3 19:15:19 2015 (r289171)
+++ soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c Mon Aug 3 20:15:11 2015 (r289172)
@@ -472,6 +472,13 @@
}
}
+ /*
+ * if the physical destination address does not match the station's
+ * address, accept the frame only in the Promiscuous Physical mode
+ */
+ if (rcr & ED_RCR_PRO)
+ return 1;
+
return 0;
}
More information about the svn-soc-all
mailing list