interface-ip: clear host bits of the device prefix
authorHans Dedecker <dedeckeh@gmail.com>
Sun, 9 Aug 2020 20:46:54 +0000 (22:46 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 10 Aug 2020 19:20:52 +0000 (21:20 +0200)
commit645ceed0ed706b073edd6a0d5a2eb936208b48c9
treebcf841c0f4c1075f6e2a2f15c598e9115a728414
parente32e21e8f338045f410293fab928c9166bf8a44e
interface-ip: clear host bits of the device prefix

Clear the host bits of the device prefix in
interface_ip_add_device_prefix as interface_set_prefix_address just ORs
the calculated assignment part which would lead to an invalid IPv6
address if the host bits are not masked out

Suggested-by: Daniel Gröber <dxld@darkboxed.org>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface-ip.c