From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D80F61396DA for ; Tue, 14 Nov 2017 20:48:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02509E0EAE; Tue, 14 Nov 2017 20:48:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6DF6E0EAE for ; Tue, 14 Nov 2017 20:48:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F172E33D3C7 for ; Tue, 14 Nov 2017 20:48:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8AB29AE6 for ; Tue, 14 Nov 2017 20:48:28 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1510692087.5496033be61f97755627ba1da45421a2a635c09e.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 5496033be61f97755627ba1da45421a2a635c09e X-VCS-Branch: master Date: Tue, 14 Nov 2017 20:48:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 93b5e44f-43ab-4954-a4ca-9c6a7c2c3c3b X-Archives-Hash: 2da36ef47d93a56223045de19c529313 commit: 5496033be61f97755627ba1da45421a2a635c09e Author: Robin H. Johnson gentoo org> AuthorDate: Tue Nov 14 20:41:27 2017 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Nov 14 20:41:27 2017 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=5496033b net/iproute2: clarify "waiting for IPv6 addresses" Per bug 636846, a user thought that "waiting for IPv6 addresses" was SLAAC (Stateless Autoconfiguration). In Linux, SLAAC is entirely kernel-side, and the waiting is actually for DAD (duplicate address detection) on link-local IPv6 addresses. - Improve the message to include both DAD & tentative. - If --verbose is used, print the tentative addresses. If either of the accept_dad sysctls are set to zero, then the kernel should NOT mark any addresses as tentative. - net.ipv6.conf.all.accept_dad=0 - net.ipv6.conf.$IFACE.accept_dad=0 Bug: https://bugs.gentoo.org/636846 Signed-off-by: Robin H. Johnson gentoo.org> net/iproute2.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index 6d7a3b5..d33ee11 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -463,7 +463,11 @@ iproute2_post_start() # This block must be non-fatal, otherwise the interface will not be # recorded as starting, and later services may be blocked. if _iproute2_ipv6_tentative; then - einfon "Waiting for IPv6 addresses (${_dad_timeout} seconds) " + if [ "$EINFO_VERBOSE" = "yes" ]; then + veinfo "Found tentative addresses:" + LC_ALL=C ip -family inet6 addr show dev ${IFACE} tentative + fi + einfon "Waiting for tentative IPv6 addresses to complete DAD (${_dad_timeout} seconds) " while [ $_dad_timeout -gt 0 ]; do _iproute2_ipv6_tentative || break sleep 1