Skip to content

Commit

Permalink
add timeout to ping6 command (#17729)
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
  • Loading branch information
theasianpianist authored and mssonicbld committed Jan 11, 2024
1 parent 13aa19a commit 9f66a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/scripts/arp_update
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ while /bin/true; do

ALL_INTERFACE="$INTERFACE $PC_INTERFACE $VLAN_SUB_INTERFACE"
for intf in $ALL_INTERFACE; do
ping6cmd="ping6 -I $intf -n -q -i 0 -c 1 -W 0 ff02::1 >/dev/null"
ping6cmd="timeout 0.2 ping6 -I $intf -n -q -i 0 -c 1 -W 0 ff02::1 >/dev/null"
intf_up=$(ip link show $intf | grep "state UP")
if [[ -n "$intf_up" ]]; then
eval $ping6cmd
Expand Down

0 comments on commit 9f66a7d

Please sign in to comment.