network: arping2 use 0.0.0.0 as source address
parent
dba974844e
commit
00ca15abbf
|
@ -160,7 +160,7 @@ case $reason in
|
||||||
fi
|
fi
|
||||||
if [ "$layer2" != "0" ]; then
|
if [ "$layer2" != "0" ]; then
|
||||||
if command -v arping2 >/dev/null; 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"
|
warn "Duplicate address detected for $new_ip_address while doing dhcp. retrying"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -111,7 +111,7 @@ do_static() {
|
||||||
wait_for_ipv6_dad $netif
|
wait_for_ipv6_dad $netif
|
||||||
else
|
else
|
||||||
if command -v arping2 >/dev/null; then
|
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."
|
warn "Duplicate address detected for $ip for interface $netif."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue