The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/net/ieee_oui.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Copyright (c) 2013 The FreeBSD Foundation
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above
   11  *    copyright notice, this list of conditions and the following
   12  *    disclaimer in the documentation and/or other materials provided
   13  *    with the distribution.
   14  *
   15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''
   16  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   17  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
   18  * PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR
   19  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   22  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   24  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   25  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   26  * SUCH DAMAGE.
   27  *
   28  * $FreeBSD: releng/11.1/sys/net/ieee_oui.h 266462 2014-05-20 02:59:13Z grehan $
   29  *
   30  * Author: George V. Neville-Neil
   31  *
   32  */
   33 
   34 /* Organizationally Unique Identifier assigned by IEEE 14 Nov 2013 */
   35 #define OUI_FREEBSD_BASE 0x589cfc000000
   36 #define OUI_FREEBSD(nic) (OUI_FREEBSD_BASE | (nic))
   37 
   38 /* 
   39  * OUIs are most often used to uniquely identify network interfaces
   40  * and occupy the first 3 bytes of both destination and source MAC
   41  * addresses.  The following allocations exist so that various
   42  * software systems associated with FreeBSD can have unique IDs in the
   43  * absence of hardware.  The use of OUIs for this purpose is not fully
   44  * fleshed out but is now in common use in virtualization technology.
   45  * 
   46  * Allocations from this range are expected to be made using COMMON
   47  * SENSE by developers.  Do NOT take a large range just because
   48  * they're currently wide open.  Take the smallest useful range for
   49  * your system.  We have (2^24 - 2) available addresses (see Reserved
   50  * Values below) but that is far from infinite.
   51  *
   52  * In the event of a conflict arbitration of allocation in this file
   53  * is subject to core@ approval.
   54  * 
   55  * Applications are differentiated based on the high order bit(s) of
   56  * the remaining three bytes.  Our first allocation has all 0s, the
   57  * next allocation has the highest bit set.  Allocating in this way
   58  * gives us 254 allocations of 64K addresses.  Address blocks can be
   59  * concatenated if necessary.
   60  *
   61  * Reserved Values: 0x000000 and 0xffffff are reserved and MUST NOT BE
   62  * allocated for any reason.
   63  */
   64 
   65 /* Allocate 20 bits to bhyve */
   66 #define OUI_FREEBSD_BHYVE_LOW   OUI_FREEBSD(0x000001)
   67 #define OUI_FREEBSD_BHYVE_HIGH  OUI_FREEBSD(0x0fffff)

Cache object: 21810faf1e54ba4385b7eadf026fbd1d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.