From: Pali Rohár Date: Sun, 10 Jan 2021 17:51:23 +0000 (+0100) Subject: pppd: Fix setting flags of IPv6 peer address X-Git-Tag: ppp-2.5.0~85^2~3 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=c4d488788a3ed8fba3e75c9ddd632d1f98e9ac77;hp=98ec18f098e5ef68e3a8cc6954fcaf5a7fb8b7be;p=ppp.git pppd: Fix setting flags of IPv6 peer address Address is link-local (not globaly routable) and is permanent (not dynamic from stateless address configuration). Signed-off-by: Pali Rohár --- diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 50c4f2d..a7508fe 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -2885,8 +2885,8 @@ static int append_peer_ipv6_address(unsigned int iface, struct in6_addr *local_a 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);