From ddf84365c1de72283d103074cb959696d0447edd Mon Sep 17 00:00:00 2001 From: kvaps Date: Fri, 22 Dec 2017 17:54:25 +0100 Subject: [PATCH] upd: arping replaced to arping from iputils --- Dockerfile | 2 +- bridget.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9065ef..a6a65e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/bridget.sh b/bridget.sh index 7f63250..5e97238 100644 --- a/bridget.sh +++ b/bridget.sh @@ -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"