From 726d56ca0a23e5a39de5f809da2d20ce7985d437 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Tue, 7 Feb 2023 22:24:15 +0100 Subject: [PATCH] fix(network): IPv6: don't wait for RA for static IPv6 assignments This patch reverts commit c603419 ("wait for IPv6 RA if using none/static IPv6 assignment"). It's not generally correct wait for a default route to be established for an interface, or to wait for "proto ra" routes in general. For example, if the system is a router itself, it will receive no RAs. In isolated networks, no gateway may be advertized, either. This is similar in spirit to 76f6566 ("Revert "wait for IPv6 RA if using none/static IPv6 assignment"") Whatever c603419 ("wait for IPv6 RA if using none/static IPv6 assignment") was supposed to achieve, it should be done differently. --- modules.d/40network/net-lib.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh index 77d458d80..02845dbc3 100755 --- a/modules.d/40network/net-lib.sh +++ b/modules.d/40network/net-lib.sh @@ -727,7 +727,6 @@ wait_for_ipv6_dad() { while [ $cnt -lt $timeout ]; do [ -n "$(ip -6 addr show dev "$@")" ] \ && [ -z "$(ip -6 addr show dev "$@" tentative)" ] \ - && { ip -6 route list proto ra dev "$@" | grep -q ^default; } \ && return 0 [ -n "$(ip -6 addr show dev "$@" dadfailed)" ] \ && return 1 -- 2.47.2