From owner-svn-soc-all@freebsd.org Mon Aug 3 20:15:13 2015 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 063B39B274C for ; Mon, 3 Aug 2015 20:15:13 +0000 (UTC) (envelope-from iateaca@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EADD6D7E for ; Mon, 3 Aug 2015 20:15:12 +0000 (UTC) (envelope-from iateaca@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id t73KFCTv092448 for ; Mon, 3 Aug 2015 20:15:12 GMT (envelope-from iateaca@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id t73KFC59092417 for svn-soc-all@FreeBSD.org; Mon, 3 Aug 2015 20:15:12 GMT (envelope-from iateaca@FreeBSD.org) Date: Mon, 3 Aug 2015 20:15:12 GMT Message-Id: <201508032015.t73KFC59092417@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to iateaca@FreeBSD.org using -f From: iateaca@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r289172 - soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 20:15:13 -0000 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; }