OpenDingux / buildroot

Buildroot, making embedded Linux easy. Note that this is not the official repository, but only a mirror. The official Git repository is at http://git.buildroot.net/buildroot/. Do not open issues or file pull requests here.
http://buildroot.org
Other
63 stars 46 forks source link

USB: Ensure stable mac addresses for host and device #117

Closed pasnox closed 1 year ago

pasnox commented 1 year ago

MAC addresses are generated on the first network access and stored in in the /usr/local/etc/usb.conf file.

pcercuei commented 1 year ago

Testing:

while /bin/true ; do echo 06$(hexdump -n5 -e'/1 ":%02X"' /dev/random) ; done

It will sometimes print invalid strings, e.g.: 06:A0:FB:2E* :12 or 06:84* :D4:A7:BB

The same thing happens with /dev/urandom.