interface-ip: fix race condition in IPv6 prefix address generation
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 14 Dec 2017 13:13:34 +0000 (14:13 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 15 Dec 2017 16:20:54 +0000 (17:20 +0100)
commit81ff6d120e8c247b7c714daefd45ae7b90e3b643
tree47df830859b691ecce7dcf69ca640f52e7de7c64
parentd3a5df04bdcc039d900df49c8c608c1a91a976c7
interface-ip: fix race condition in IPv6 prefix address generation

Don't generate an IPv6 prefix address without taking into account the
interface state. In case eui64 is configured to generate the ifaceid this
could fail as the layer3 device mac address could not yet be available if
the interface is not yet in setup or up state.
While at it remove the interface metric assignment as this is already done
by the function interface_set_route_info.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface-ip.c