[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-port-i386
Subject:    Re: Sun Quad Ethernet card on PC
From:       Ignatios Souvatzis <ignatios () cs ! uni-bonn ! de>
Date:       2005-04-20 7:35:35
Message-ID: 20050420073535.GA27090 () cs ! uni-bonn ! de
[Download RAW message or body]


Hi,

Peter Eisch wrote:
 
> As an aside, I reloaded my system with linux (2.4.27 kernel).  Curiously, it
> has this at drivers/net/sunhme.c:2947:
> 
> ---------------------
>         if (pdev->resource[PCI_ROM_RESOURCE].parent == NULL) {
>                 if (pci_assign_resource(pdev, PCI_ROM_RESOURCE) < 0)
>                         goto use_random;
>         }
> ---------------------
> 
> Where:
> 
> ---------------------
> use_random:
>         /* Sun MAC prefix then 3 random bytes. */
>         dev_addr[0] = 0x08;
>         dev_addr[1] = 0x00;
>         dev_addr[2] = 0x20;
>         get_random_bytes(&dev_addr[3], 3);
>         return;

Using SUNs MAC prefix like that is illegal. If you invent an Ethernet
MAC that is not guaranteed unique, you have to use the locally-
managed ID space. That is, you have to or 0x02 to the first byte, 
whatever else is in there. [1] Note that even some of the 0x02-ored 
prefixes are assigned for specific purposes (e.g. AA:00:04 for 
DECnet). [2]

[1] http://minix1.bio.umass.edu/faq/locethad.html
[2] http://standards.ieee.org/regauth/oui/oui.txt

Regards,
	-is

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic