observe: correct a stale comment calling the catch-all 'other'

It is a TOTAL -- every packet reaching the chain counts there, including ones
already counted by a named-port rule. The old wording invited reading the number
as a remainder, which is how 15 unexplained attempts got misread earlier.
This commit is contained in:
funman300
2026-08-11 05:20:24 +00:00
parent b1bc7a764e
commit c65e9c54ce
+3 -1
View File
@@ -98,7 +98,9 @@ cmd_off() {
echo "observing off: removed $removed hook(s) and the chain, verified none remain"
}
# "port<TAB>packets", catch-all reported as "other".
# "port<TAB>packets". 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 }