Skip to content

Commit

Permalink
wait for IPv6 RA if using none/static IPv6 assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
pallotron committed Apr 4, 2017
1 parent 685d861 commit c603419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/40network/net-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ wait_for_ipv6_dad() {

while [ $cnt -lt $timeout ]; do
[ -z "$(ip -6 addr show dev "$1" tentative)" ] \
&& [ -n "$(ip -6 route list proto ra dev "$1")" ] \
&& return 0
[ -n "$(ip -6 addr show dev "$1" dadfailed)" ] \
&& return 1
Expand Down

0 comments on commit c603419

Please sign in to comment.