]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
Remove broken PING_GW_IPV[46] feature
authorJohannes Truschnigg <johannes@truschnigg.info>
Sat, 3 Sep 2022 11:14:52 +0000 (13:14 +0200)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sat, 3 Sep 2022 11:14:52 +0000 (13:14 +0200)
sqm_lagthrottle.sh

index de083e6806380fa0c71b484ee8d216a3427a82ce..ad274df83459ae1ed4344ee750e88ec45296e6c4 100755 (executable)
@@ -40,8 +40,6 @@ OPTIMIZATION_PREFERENCE="latency" # try to optimize for either "latency" (i.e.,
 PING_SLOTS_PER_PEER=5 # number of samples per PING_PEER to calculate averages over
 PING_INTERVAL=300 # interval in msec to emit ICMP ECHO towards each PING_PEER
 THRESHOLD=1.2 # factor relevant in judging current latency compared to avg. - leave it at 1.2
-PING_GW_IPV4=no # do not use - broken
-PING_GW_IPV6=no # do not use - broken
 
 
 
@@ -123,18 +121,6 @@ then
 fi
 
 
-if [ x"${PING_GW_IPV6:-no}" = xyes ]
-then
-  PING_PEERS="$(traceroute -6 -n -m 2001:4860:4860::8888 | awk '{if("1" == $1){print $2}}') ${PING_PEERS}"
-fi
-
-
-if [ x"${PING_GW_IPV4:-no}" = xyes ]
-then
-  PING_PEERS="$(traceroute -4 -n -m 1 8.8.8.8 | awk '{if("1" == $1){print $2}}') ${PING_PEERS}"
-fi
-
-
 if ! __is_num "${THRESHOLD}"
 then
   printf 'FATAL: Invalid value for THRESHOLD\n' >&2