]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: arping2 use 0.0.0.0 as source address
authorHarald Hoyer <harald@redhat.com>
Mon, 22 Aug 2016 12:38:54 +0000 (14:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 2 Sep 2016 05:51:55 +0000 (07:51 +0200)
modules.d/40network/dhclient-script.sh
modules.d/40network/ifup.sh

index 2eade353d8c628fc3b03d151ff5820427a82db96..f49cdb88bb8faf0aa905dc9a04c8366a1f381089 100755 (executable)
@@ -160,7 +160,7 @@ case $reason in
         fi
         if [ "$layer2" != "0" ]; then
             if command -v arping2 >/dev/null; then
-                if arping2 -q -C 1 -c 2 -I $netif $new_ip_address ; then
+                if arping2 -q -C 1 -c 2 -I $netif -0 $new_ip_address ; then
                     warn "Duplicate address detected for $new_ip_address while doing dhcp. retrying"
                     exit 1
                 fi
index 1461b916704b77249233db6893bfc7ee228761b2..80511562b1362690a3963050cfbc4aa97aba011d 100755 (executable)
@@ -111,7 +111,7 @@ do_static() {
         wait_for_ipv6_dad $netif
     else
         if command -v arping2 >/dev/null; then
-            if arping2 -q -C 1 -c 2 -I $netif $ip ; then
+            if arping2 -q -C 1 -c 2 -I $netif -0 $ip ; then
                 warn "Duplicate address detected for $ip for interface $netif."
                 return 1
             fi