Skip to content

Commit 9f66a7d

Browse files
theasianpianistmssonicbld
authored andcommitted
add timeout to ping6 command (sonic-net#17729)
Signed-off-by: Lawrence Lee <[email protected]>
1 parent 13aa19a commit 9f66a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/scripts/arp_update

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ while /bin/true; do
6868

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

0 commit comments

Comments
 (0)