libos-nuse/net-next-nuse

refine mac address assignment to avoid duplicated MAC

Closed this issue · 3 comments

refine mac address assignment to avoid duplicated MAC
upa commented

when macaddr is not defined in config file or 00:00:00:00:00:00, macaddr is filled by eth_random_addr().

<6>nsc: Hash tables configured (established 512 bind 512)
create vif eth0
  address = 192.168.0.10
  netmask = 255.255.255.0
  macaddr = 00:00:00:00:00:00
  type    = 3
tap_alloc: alloc tap interface nuse-eth0
mac address for eth0 is randomized 82:9a:71:e7:88:69

Great. Now I see what eth_random_addr() does the job. Thanks.

Btw, every gdb stacktrace pasted to a commit message will be automatically refers github issue(s). Funny.