config: use dedicated link local function to check interface
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 3 Apr 2023 18:12:13 +0000 (20:12 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 3 Apr 2023 19:19:26 +0000 (21:19 +0200)
commit40ab806bf4c8698ac925d094ce11ce1d57ae2e46
tree6ec1535fc13c004368ecb668eb64cbe126375b48
parenta84bff2625670ab5d107d72d565bed678b02e691
config: use dedicated link local function to check interface

Use netlink_get_interface_addrs is wrong and doesn't actually work. The
function checks only for UNIVERSE address and is not suitable for
dumping linklocal address of an interface. Use the new and dedicated
function to get interface linklocal address to correctly check if the
interface can receive message.

Fixes: #197
Fixes: 7c0f603abc14 ("router: skip RA and wait for LINK-LOCAL to be assigned")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
src/config.c