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
@@ -11,6 +11,7 @@
#[macro_use]
extern crate lazy_static;
extern crate libc;
extern crate rand;
extern crate serde;
extern crate net_gen;