1 |
commit: 5496033be61f97755627ba1da45421a2a635c09e |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 14 20:41:27 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 14 20:41:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=5496033b |
7 |
|
8 |
net/iproute2: clarify "waiting for IPv6 addresses" |
9 |
|
10 |
Per bug 636846, a user thought that "waiting for IPv6 addresses" was |
11 |
SLAAC (Stateless Autoconfiguration). In Linux, SLAAC is entirely |
12 |
kernel-side, and the waiting is actually for DAD (duplicate address |
13 |
detection) on link-local IPv6 addresses. |
14 |
|
15 |
- Improve the message to include both DAD & tentative. |
16 |
- If --verbose is used, print the tentative addresses. |
17 |
|
18 |
If either of the accept_dad sysctls are set to zero, then the kernel |
19 |
should NOT mark any addresses as tentative. |
20 |
- net.ipv6.conf.all.accept_dad=0 |
21 |
- net.ipv6.conf.$IFACE.accept_dad=0 |
22 |
|
23 |
Bug: https://bugs.gentoo.org/636846 |
24 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
25 |
|
26 |
net/iproute2.sh | 6 +++++- |
27 |
1 file changed, 5 insertions(+), 1 deletion(-) |
28 |
|
29 |
diff --git a/net/iproute2.sh b/net/iproute2.sh |
30 |
index 6d7a3b5..d33ee11 100644 |
31 |
--- a/net/iproute2.sh |
32 |
+++ b/net/iproute2.sh |
33 |
@@ -463,7 +463,11 @@ iproute2_post_start() |
34 |
# This block must be non-fatal, otherwise the interface will not be |
35 |
# recorded as starting, and later services may be blocked. |
36 |
if _iproute2_ipv6_tentative; then |
37 |
- einfon "Waiting for IPv6 addresses (${_dad_timeout} seconds) " |
38 |
+ if [ "$EINFO_VERBOSE" = "yes" ]; then |
39 |
+ veinfo "Found tentative addresses:" |
40 |
+ LC_ALL=C ip -family inet6 addr show dev ${IFACE} tentative |
41 |
+ fi |
42 |
+ einfon "Waiting for tentative IPv6 addresses to complete DAD (${_dad_timeout} seconds) " |
43 |
while [ $_dad_timeout -gt 0 ]; do |
44 |
_iproute2_ipv6_tentative || break |
45 |
sleep 1 |