Blame 0005-wait-for-IPv6-RA-if-using-none-static-IPv6-assignmen.patch
|
Harald Hoyer |
3763a8 |
From c603419030136570b5944dc4620f62d07b9e82bb Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
3763a8 |
From: pallotron <pallotron@fb.com>
|
|
Harald Hoyer |
3763a8 |
Date: Tue, 4 Apr 2017 08:31:21 -0700
|
|
Harald Hoyer |
3763a8 |
Subject: [PATCH] wait for IPv6 RA if using none/static IPv6 assignment
|
|
Harald Hoyer |
3763a8 |
|
|
Harald Hoyer |
3763a8 |
---
|
|
Harald Hoyer |
3763a8 |
modules.d/40network/net-lib.sh | 1 +
|
|
Harald Hoyer |
3763a8 |
1 file changed, 1 insertion(+)
|
|
Harald Hoyer |
3763a8 |
|
|
Harald Hoyer |
3763a8 |
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
|
|
Harald Hoyer |
3763a8 |
index 75051544..b74fdbdd 100755
|
|
Harald Hoyer |
3763a8 |
--- a/modules.d/40network/net-lib.sh
|
|
Harald Hoyer |
3763a8 |
+++ b/modules.d/40network/net-lib.sh
|
|
Harald Hoyer |
3763a8 |
@@ -671,6 +671,7 @@ wait_for_ipv6_dad() {
|
|
Harald Hoyer |
3763a8 |
|
|
Harald Hoyer |
3763a8 |
while [ $cnt -lt $timeout ]; do
|
|
Harald Hoyer |
3763a8 |
[ -z "$(ip -6 addr show dev "$1" tentative)" ] \
|
|
Harald Hoyer |
3763a8 |
+ && [ -n "$(ip -6 route list proto ra dev "$1")" ] \
|
|
Harald Hoyer |
3763a8 |
&& return 0
|
|
Harald Hoyer |
3763a8 |
[ -n "$(ip -6 addr show dev "$1" dadfailed)" ] \
|
|
Harald Hoyer |
3763a8 |
&& return 1
|