Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2013 21:57:37 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r258147 - head/sys/net
Message-ID:  <201311142157.rAELvbp1005681@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gnn
Date: Thu Nov 14 21:57:37 2013
New Revision: 258147
URL: http://svnweb.freebsd.org/changeset/base/258147

Log:
  Put in the correct bit shifting and add a type to prevent clang from complaining.
  While here fix up a grammar nit.
  
  Pointed out by: Sergey Kandaurov and bz@ respectively.

Modified:
  head/sys/net/ieee_oui.h

Modified: head/sys/net/ieee_oui.h
==============================================================================
--- head/sys/net/ieee_oui.h	Thu Nov 14 21:31:58 2013	(r258146)
+++ head/sys/net/ieee_oui.h	Thu Nov 14 21:57:37 2013	(r258147)
@@ -49,7 +49,7 @@
  * Values below) but that is far from infinite.
  *
  * In the event of a conflict arbitration of allocation in this file
- * is subject to core@ approval
+ * is subject to core@ approval.
  * 
  * Applications are differentiated based on the high order bit(s) of
  * the remaining three bytes.  Our first allocation has all 0s, the
@@ -62,5 +62,5 @@
  */
 
 /* Allocate 64K to bhyve */
-#define OUI_FREEBSD_BHYVE_LOW	((OUI_FREEBSD << 3) + 0x000001)
-#define OUI_FREEBSD_BHYVE_HIGH	((OUI_FREEBSD << 3) + 0x00ffff)
+#define OUI_FREEBSD_BHYVE_LOW	(((uint64_t)OUI_FREEBSD << 24) | 0x000001)
+#define OUI_FREEBSD_BHYVE_HIGH	(((uint64_t)OUI_FREEBSD << 24) | 0x00ffff)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311142157.rAELvbp1005681>