upd: arping replaced to arping from iputils

master
kvaps 2017-12-22 17:54:25 +01:00
parent 22537fba35
commit ddf84365c1
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM alpine
RUN apk add --no-cache iproute2 arping
RUN apk add --no-cache iproute2 iputils
ADD bridget.sh /bin/bridget.sh
CMD . /bin/bridget.sh

View File

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