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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user