upd: arping replaced to arping from iputils
parent
7ed4c5afc5
commit
6381ed0eb1
|
@ -81,7 +81,7 @@ unused_gateway() {
|
||||||
UNUSED_GATEWAY="$(random_gateway)"
|
UNUSED_GATEWAY="$(random_gateway)"
|
||||||
fi
|
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)"
|
local UNUSED_GATEWAY="$(random_gateway)"
|
||||||
done
|
done
|
||||||
echo "$UNUSED_GATEWAY"
|
echo "$UNUSED_GATEWAY"
|
||||||
|
|
Loading…
Reference in New Issue