Skip to content

Commit bc3ae9d

Browse files
authored
Consider 100% packet loss as connection loss
1 parent 12f01a5 commit bc3ae9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routertools

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ trap 'trap_ctl' SIGINT SIGTERM
4141

4242
# Initialize variables and language setting for compatibility
4343
LANG=C
44-
version="1.2.16"
44+
version="1.2.17"
4545
error_count=0
4646
crit_count=0
4747
crit_add=0
@@ -1830,7 +1830,7 @@ get_inet_status(){
18301830
sleep .1
18311831
done
18321832

1833-
local inetcheck=$(cat /dev/shm/routertools.netrec.inet 2>/dev/null | grep -Ei "unreachable|temporary" | wc -l)
1833+
local inetcheck=$(cat /dev/shm/routertools.netrec.inet 2>/dev/null | grep -Ei "unreachable|temporary|100% packet loss" | wc -l)
18341834

18351835
if [[ $elapsed -eq $inet_check_timeout ]] && [[ ! -s /dev/shm/routertools.netrec.inet ]]; then
18361836
local inetcheck=1

0 commit comments

Comments
 (0)