From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXD6K-0006oK-SV for qemu-devel@nongnu.org; Fri, 18 Oct 2013 12:40:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXD6C-0006v7-FS for qemu-devel@nongnu.org; Fri, 18 Oct 2013 12:40:36 -0400 Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:40891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXD6C-0006ut-9M for qemu-devel@nongnu.org; Fri, 18 Oct 2013 12:40:28 -0400 Received: by mail-ee0-f52.google.com with SMTP id d51so291113eek.25 for ; Fri, 18 Oct 2013 09:40:27 -0700 (PDT) Date: Fri, 18 Oct 2013 18:40:25 +0200 From: Stefan Hajnoczi Message-ID: <20131018164025.GA29916@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] net: disallow to specify multicast MAC address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dmitry Krivenok Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, Anthony Liguori On Thu, Oct 17, 2013 at 07:06:28PM +0400, Dmitry Krivenok wrote: > +bool net_macaddr_is_multicast(uint8_t *macaddr) > +{ > + return (macaddr[0] % 2) ? true : false; > +} Please use is_multicast_ether_addr() instead. Thanks Amos for pointing out this function is duplicated. I have dropped this patch and will merge the next revision instead.