Skip to content

Commit

Permalink
fix(network): IPv6: don't wait for RA for static IPv6 assignments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mwilck authored and aafeijoo-suse committed Feb 13, 2023
1 parent b074216 commit 726d56c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules.d/40network/net-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 726d56c

Please sign in to comment.