| To: | Stephen Hemminger <shemminger@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] dummy -- support hardware address |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Thu, 8 Apr 2004 14:54:03 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20040408110834.2fd1bd25@dell_ss3.pdx.osdl.net> |
| References: | <20040408110834.2fd1bd25@dell_ss3.pdx.osdl.net> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Stephen, why don't you do what usbnet does? Look at usbnet_init()
where it goes:
get_random_bytes (node_id, sizeof node_id);
node_id [0] &= 0xfe; // clear multicast bit
node_id [0] |= 0x02; // set local assignment bit (IEEE802)
I distinctly remember Alan Cox saying this was the right way
do this and avoid conflicts with Vendor assigned IDs.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] etherdevice.h -- make constant args, David S. Miller |
|---|---|
| Next by Date: | Re: [PATCH] dummy -- support hardware address, Stephen Hemminger |
| Previous by Thread: | [PATCH] dummy -- support hardware address, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] dummy -- support hardware address, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |