summaryrefslogtreecommitdiffstats
path: root/sys/net/ieee_oui.h
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2013-11-14 21:57:37 +0000
committergnn <gnn@FreeBSD.org>2013-11-14 21:57:37 +0000
commitcf61e85a7ab5d0a8538c72c3d4e649c134219b48 (patch)
tree63527af9d76b407ad60268477ec99da774f818f9 /sys/net/ieee_oui.h
parent64d7b3a621ad68a76491cebb9fb96b7c349668a0 (diff)
downloadFreeBSD-src-cf61e85a7ab5d0a8538c72c3d4e649c134219b48.zip
FreeBSD-src-cf61e85a7ab5d0a8538c72c3d4e649c134219b48.tar.gz
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.
Diffstat (limited to 'sys/net/ieee_oui.h')
-rw-r--r--sys/net/ieee_oui.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/ieee_oui.h b/sys/net/ieee_oui.h
index 70f7f1c..0898f8a 100644
--- a/sys/net/ieee_oui.h
+++ b/sys/net/ieee_oui.h
@@ -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)
OpenPOWER on IntegriCloud