svn commit: r346052 - head/sys/dev/usb/net
John Baldwin
jhb at FreeBSD.org
Tue Apr 9 16:11:57 UTC 2019
On 4/9/19 6:54 AM, Ganbold Tsagaankhuu wrote:
> Author: ganbold
> Date: Tue Apr 9 13:54:08 2019
> New Revision: 346052
> URL: https://svnweb.freebsd.org/changeset/base/346052
>
> Log:
> In some cases like NanoPI R1, its second USB ethernet
> RTL8152 (chip version URE_CHIP_VER_4C10) doesn't
> have hardwired MAC address, in other words, it is all zeros.
> This commit fixes it by setting random MAC address
> when MAC address is all zeros.
>
> Reviewed by: kevlo
> Differential Revision: https://reviews.freebsd.org/D19856
It would be best to not use a purely random mac address and to use the
function kevans@ added recently. That function generates a MAC address
from the FreeBSD OUI using a cryptographic hash so you get a
stable address across boots on a given host.
--
John Baldwin
More information about the svn-src-head
mailing list