1258141Sgnn/*
2258141Sgnn * Copyright (c) 2013 The FreeBSD Foundation
3258141Sgnn * All rights reserved.
4258141Sgnn *
5258141Sgnn * Redistribution and use in source and binary forms, with or without
6258141Sgnn * modification, are permitted provided that the following conditions
7258141Sgnn * are met:
8258141Sgnn * 1. Redistributions of source code must retain the above copyright
9258141Sgnn *    notice, this list of conditions and the following disclaimer.
10258141Sgnn * 2. Redistributions in binary form must reproduce the above
11258141Sgnn *    copyright notice, this list of conditions and the following
12258141Sgnn *    disclaimer in the documentation and/or other materials provided
13258141Sgnn *    with the distribution.
14258141Sgnn *
15258141Sgnn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''
16258141Sgnn * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17258141Sgnn * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
18258141Sgnn * PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR
19258141Sgnn * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20258141Sgnn * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21258141Sgnn * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
22258141Sgnn * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23258141Sgnn * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24258141Sgnn * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25258141Sgnn * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26258141Sgnn * SUCH DAMAGE.
27258141Sgnn *
28258141Sgnn * $FreeBSD: releng/11.0/sys/net/ieee_oui.h 266462 2014-05-20 02:59:13Z grehan $
29258141Sgnn *
30258141Sgnn * Author: George V. Neville-Neil
31258141Sgnn *
32258141Sgnn */
33258141Sgnn
34258141Sgnn/* Organizationally Unique Identifier assigned by IEEE 14 Nov 2013 */
35258175Sgnn#define OUI_FREEBSD_BASE 0x589cfc000000
36258175Sgnn#define OUI_FREEBSD(nic) (OUI_FREEBSD_BASE | (nic))
37258141Sgnn
38258141Sgnn/*
39258141Sgnn * OUIs are most often used to uniquely identify network interfaces
40258141Sgnn * and occupy the first 3 bytes of both destination and source MAC
41258141Sgnn * addresses.  The following allocations exist so that various
42258141Sgnn * software systems associated with FreeBSD can have unique IDs in the
43258141Sgnn * absence of hardware.  The use of OUIs for this purpose is not fully
44258141Sgnn * fleshed out but is now in common use in virtualization technology.
45258141Sgnn *
46258141Sgnn * Allocations from this range are expected to be made using COMMON
47258141Sgnn * SENSE by developers.  Do NOT take a large range just because
48258141Sgnn * they're currently wide open.  Take the smallest useful range for
49258141Sgnn * your system.  We have (2^24 - 2) available addresses (see Reserved
50258141Sgnn * Values below) but that is far from infinite.
51258141Sgnn *
52258141Sgnn * In the event of a conflict arbitration of allocation in this file
53258147Sgnn * is subject to core@ approval.
54258141Sgnn *
55258141Sgnn * Applications are differentiated based on the high order bit(s) of
56258141Sgnn * the remaining three bytes.  Our first allocation has all 0s, the
57258141Sgnn * next allocation has the highest bit set.  Allocating in this way
58258141Sgnn * gives us 254 allocations of 64K addresses.  Address blocks can be
59258141Sgnn * concatenated if necessary.
60258141Sgnn *
61258141Sgnn * Reserved Values: 0x000000 and 0xffffff are reserved and MUST NOT BE
62258141Sgnn * allocated for any reason.
63258141Sgnn */
64258141Sgnn
65266462Sgrehan/* Allocate 20 bits to bhyve */
66258175Sgnn#define OUI_FREEBSD_BHYVE_LOW	OUI_FREEBSD(0x000001)
67266462Sgrehan#define OUI_FREEBSD_BHYVE_HIGH	OUI_FREEBSD(0x0fffff)
68