From c4d488788a3ed8fba3e75c9ddd632d1f98e9ac77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Sun, 10 Jan 2021 18:51:23 +0100 Subject: [PATCH] pppd: Fix setting flags of IPv6 peer address MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Address is link-local (not globaly routable) and is permanent (not dynamic from stateless address configuration). Signed-off-by: Pali Rohár --- pppd/sys-linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2