Address is link-local (not globaly routable) and is permanent (not dynamic
from stateless address configuration).
Signed-off-by: Pali Rohár <pali@kernel.org>
ifa = NLMSG_DATA(nlmsg);
ifa->ifa_family = AF_INET6;
ifa->ifa_prefixlen = 128;
ifa = NLMSG_DATA(nlmsg);
ifa->ifa_family = AF_INET6;
ifa->ifa_prefixlen = 128;
- ifa->ifa_flags = 0;
- ifa->ifa_scope = RT_SCOPE_UNIVERSE;
+ ifa->ifa_flags = IFA_F_PERMANENT;
+ ifa->ifa_scope = RT_SCOPE_LINK;
ifa->ifa_index = iface;
local_rta = IFA_RTA(ifa);
ifa->ifa_index = iface;
local_rta = IFA_RTA(ifa);