Blame SOURCES/0310-network-dhclient-exit-arping-immediatly-if-we-get-an.patch

64b87c
From d6bfa7052a620ebdd37f78655462120871c49ebd Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Tue, 18 Aug 2015 12:41:12 +0200
64b87c
Subject: [PATCH] network/dhclient: exit arping immediatly, if we get an answer
64b87c
64b87c
---
64b87c
 modules.d/40network/dhclient-script.sh | 2 +-
64b87c
 1 file changed, 1 insertion(+), 1 deletion(-)
64b87c
64b87c
diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh
64b87c
index 12e2869..18b4100 100755
64b87c
--- a/modules.d/40network/dhclient-script.sh
64b87c
+++ b/modules.d/40network/dhclient-script.sh
64b87c
@@ -117,7 +117,7 @@ case $reason in
64b87c
             read layer2 < /sys/class/net/$netif/device/layer2
64b87c
         fi
64b87c
         if [ "$layer2" != "0" ]; then
64b87c
-            if ! arping -q -D -c 2 -I $netif $new_ip_address ; then
64b87c
+            if ! arping -f -q -D -c 2 -I $netif $new_ip_address ; then
64b87c
                 warn "Duplicate address detected for $new_ip_address while doing dhcp. retrying"
64b87c
                 exit 1
64b87c
             fi