diff --git a/openfut-blaze-host/openfut-observe.sh b/openfut-blaze-host/openfut-observe.sh index 07af41f..2c54270 100755 --- a/openfut-blaze-host/openfut-observe.sh +++ b/openfut-blaze-host/openfut-observe.sh @@ -98,7 +98,9 @@ cmd_off() { echo "observing off: removed $removed hook(s) and the chain, verified none remain" } -# "portpackets", catch-all reported as "other". +# "portpackets". The final catch-all is reported as TOTAL, not "other": +# every packet reaching the chain counts there, including ones already counted +# by a named-port rule above it. counters() { ipt -L "$CHAIN" -v -n -x 2>/dev/null | awk ' /dpt:/ { for(i=1;i<=NF;i++) if($i ~ /^dpt:/){ sub(/dpt:/,"",$i); print $i "\t" $1 } ; next }