From 5d97adda1862153e29f918b58a36831b2e038f9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Sun, 10 Jan 2021 19:09:25 +0100 Subject: [PATCH] pppd: Disable Duplicate Address Detection for IPv6 peer address MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit IPv6 link-local addresses are negotiated via IPV6CP and therefore are unique and not duplicate. Doing additional Duplicate Address Detection is redundant and not needed, so disable it. Signed-off-by: Pali Rohár --- pppd/sys-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index a7508fe..ca0db84 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -2885,7 +2885,7 @@ 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 = IFA_F_PERMANENT; + ifa->ifa_flags = IFA_F_NODAD | IFA_F_PERMANENT; ifa->ifa_scope = RT_SCOPE_LINK; ifa->ifa_index = iface; -- 2.39.2