upd: arping replaced to arping from iputils

master
kvaps 2017-12-22 18:11:13 +01:00
parent 7ed4c5afc5
commit 6381ed0eb1
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ unused_gateway() {
UNUSED_GATEWAY="$(random_gateway)"
fi
while arping -f -I "$BRIDGE" -s 0.0.0.0 -c 8 "$UNUSED_GATEWAY" 1>/dev/null; do
while arping -fD -I "$BRIDGE" -s 0.0.0.0 -c "$(( ( RANDOM % 8 ) + 2 ))" "$UNUSED_GATEWAY" 1>/dev/null; do
local UNUSED_GATEWAY="$(random_gateway)"
done
echo "$UNUSED_GATEWAY"