direct-io.hg

changeset 7788:504111fd562a

Allocate MAC addresses using Xensource Inc's new OUI.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Nov 14 11:06:25 2005 +0100 (2005-11-14)
parents bffbe58801d0
children edc33eea8630
files tools/python/xen/xend/server/netif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/netif.py	Sat Nov 12 18:59:56 2005 +0100
     1.2 +++ b/tools/python/xen/xend/server/netif.py	Mon Nov 14 11:06:25 2005 +0100
     1.3 @@ -35,16 +35,16 @@ xroot = XendRoot.instance()
     1.4  def randomMAC():
     1.5      """Generate a random MAC address.
     1.6  
     1.7 -    Uses OUI (Organizationally Unique Identifier) AA:00:00, an
     1.8 -    unassigned one that used to belong to DEC. The OUI list is
     1.9 -    available at 'standards.ieee.org'.
    1.10 +    Uses OUI (Organizationally Unique Identifier) 00-16-3E, allocated to
    1.11 +    Xensource, Inc. The OUI list is available at
    1.12 +    http://standards.ieee.org/regauth/oui/oui.txt.
    1.13  
    1.14      The remaining 3 fields are random, with the first bit of the first
    1.15      random field set 0.
    1.16  
    1.17      @return: MAC address string
    1.18      """
    1.19 -    mac = [ 0xaa, 0x00, 0x00,
    1.20 +    mac = [ 0x00, 0x16, 0x3e,
    1.21              random.randint(0x00, 0x7f),
    1.22              random.randint(0x00, 0xff),
    1.23              random.randint(0x00, 0xff) ]