net_util: Add helper for generating a random local MAC

We must ensure our MAC addresses do not conflict with a global one.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-05-10 07:08:37 +02:00
parent 5934f30fde
commit 576a28ae5e
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ authors = ["The Chromium OS Authors"]
[dependencies]
libc = ">=0.2.39"
rand = ">=0.6.5"
serde = ">=1.0.27"
net_gen = { path = "../net_gen" }