Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Creating network hardware address for USB CDC Subset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating network hardware address for USB CDC Subset



Hello,

I have been working on a USB CDC Subset driver and to this point have been using a fake hardware address for the ethernet interface. Unlike a full CDC implementation the subset does not provide a descriptor containing a hardware address. Left to my own devices I would continue with the current implementation but I would like to release the driver. To this end I'm looking for advice on how to generate or otherwise get a hardware address.

I have considered a plist entry that the driver could use to get the address. This solution is ugly from a end user perspective and breaks down when a user has more than one device using the driver.

Generating a 40-bit random number is another alternative but each time a new hardware address is used the network interface name increments. Again this is bad for the user.

Using the USB address along with some static data is my last idea. As long as the user does not move USB ports I think the address will stay the same.

Any ideas would be appreciated.

Thanks,
Jesse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.